ITS#9372 Default to using POSIX semaphores on MacOS

Unless robust is specified (then use SysV)
mdb.master3
Kris Zyp 4 years ago committed by Howard Chu
parent 576ccd10ff
commit d85fe32dab
  1. 2
      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

Loading…
Cancel
Save