]> git.sur5r.net Git - openldap/commitdiff
#ifdef HAVE_BERKELEY_DB2_DB_THREAD around create flags using DB_THREAD
authorKurt Zeilenga <kurt@openldap.org>
Tue, 21 Sep 1999 17:50:31 +0000 (17:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 21 Sep 1999 17:50:31 +0000 (17:50 +0000)
include/ldbm.h

index 9fd65730e39fb3908163b5df94ae23715f775146..cf5a75e4292d8d7d24f101a554248dac99208b24 100644 (file)
@@ -56,10 +56,17 @@ typedef DB  *LDBM;
 /* for ldbm_open */
 #ifdef HAVE_BERKELEY_DB2
 typedef DBC    LDBMCursor;
+
 #      define LDBM_READER      DB_RDONLY
 #      define LDBM_WRITER      0x00000      /* hopefully */
+# ifdef HAVE_BERKELEY_DB2_DB_THREAD
+#      define LDBM_WRCREAT     (DB_NOMMAP|DB_CREATE|DB_THREAD)
+#      define LDBM_NEWDB       (DB_TRUNCATE|DB_CREATE|DB_THREAD)
+# else
 #      define LDBM_WRCREAT     (DB_NOMMAP|DB_CREATE|DB_THREAD)
 #      define LDBM_NEWDB       (DB_TRUNCATE|DB_CREATE|DB_THREAD)
+# endif
+
 #else
 typedef int LDBMCursor;
 #      define LDBM_READER      O_RDONLY