[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7363) libmdb should use POSIX semaphores on non-apple BSD systems too.



Full_Name: Chris Miikkelson
Version: 2.4.32
OS: FreeBSD
URL: 
Submission from: (NULL) (204.147.85.37)


mdb on BSD-derived systems other than OS X also needs to use POSIX semaphores
for inter-process synchronization. I was working around this by adding
"-D__APPLE__" to CFLAGS, but that could have side-effects on some systems. The
following patch tells mdb to use posix semaphores if either BSD or __APPLE__ is
defined, which seems like a more targeted fix.

http://mikk.net/~chris/patches/0001-Use-posix-semaphores-on-apple-and-bsd-systems.patch