]> git.sur5r.net Git - openldap/blobdiff - libraries/liblmdb/mdb.c
Add MDB_USE_HASH
[openldap] / libraries / liblmdb / mdb.c
index f282f185d4c557b8cb8237ee7f9c8072f30945d5..91a84f091f17a213d33d3d074802dc497c76251a 100644 (file)
@@ -67,6 +67,7 @@
 
 #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
  *     @{
  */
 #ifdef _WIN32
+#define MDB_USE_HASH   1
 #define MDB_PIDLOCK    0
 #define pthread_t      DWORD
 #define pthread_mutex_t        HANDLE
@@ -3601,7 +3603,7 @@ mdb_env_excl_lock(MDB_env *env, int *excl)
        return rc;
 }
 
-#if defined(_WIN32) || defined(MDB_USE_POSIX_SEM)
+#ifdef MDB_USE_HASH
 /*
  * hash_64 - 64 bit Fowler/Noll/Vo-0 FNV-1a hash code
  *