ITS#8554 kFreeBSD is like BSD
authorHoward Chu <hyc@openldap.org>
Wed, 28 Dec 2016 18:30:19 +0000 (18:30 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Dec 2016 18:30:19 +0000 (18:30 +0000)
Doesn't have POSIX robust mutexes - GNU userland on BSD kernel

libraries/liblmdb/mdb.c

index 5ca0e0a..3e7af11 100644 (file)
@@ -149,7 +149,7 @@ typedef SSIZE_T     ssize_t;
 #include <resolv.h>    /* defines BYTE_ORDER on HPUX and Solaris */
 #endif
 
-#if defined(__APPLE__) || defined (BSD)
+#if defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
 # if !(defined(MDB_USE_POSIX_MUTEX) || defined(MDB_USE_POSIX_SEM))
 # define MDB_USE_SYSV_SEM      1
 # endif