From: Kris Zyp Date: Tue, 20 Oct 2020 14:52:08 +0000 (-0600) Subject: ITS#9372 Default to using POSIX semaphores on MacOS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d85fe32dab55b88cec25fc73dadc6d38df807cce;p=thirdparty%2Fopenldap.git ITS#9372 Default to using POSIX semaphores on MacOS Unless robust is specified (then use SysV) --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index dbd46c48cf..b12b2b068f 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -164,6 +164,8 @@ typedef SSIZE_T ssize_t; #if defined(__FreeBSD__) && defined(__FreeBSD_version) && __FreeBSD_version >= 1100110 # define MDB_USE_POSIX_MUTEX 1 # define MDB_USE_ROBUST 1 +#elif defined(__APPLE__) && !defined(MDB_USE_ROBUST) +# define MDB_USE_POSIX_SEM 1 #elif defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__) # if !(defined(MDB_USE_POSIX_MUTEX) || defined(MDB_USE_POSIX_SEM)) # define MDB_USE_SYSV_SEM 1