]> git.sur5r.net Git - openldap/blobdiff - libraries/liblmdb/mdb.c
Fix 01dfb2083dd690707a062cabb03801bfad1a6859
[openldap] / libraries / liblmdb / mdb.c
index 2ebf1a9eabb7d47bd828803c967975d3b900b5dc..e52da918a43c563c1395d6fdef7ae7f4efde2ea4 100644 (file)
@@ -67,7 +67,6 @@
 
 #if defined(__APPLE__) || defined (BSD)
 # define MDB_USE_POSIX_SEM     1
-# define MDB_USE_HASH          1
 # define MDB_FDATASYNC         fsync
 #elif defined(ANDROID)
 # define MDB_FDATASYNC         fsync
@@ -76,6 +75,7 @@
 #ifndef _WIN32
 #include <pthread.h>
 #ifdef MDB_USE_POSIX_SEM
+# define MDB_USE_HASH          1
 #include <semaphore.h>
 #endif
 #endif