From: Kurt Zeilenga Date: Tue, 21 Sep 1999 17:50:31 +0000 (+0000) Subject: #ifdef HAVE_BERKELEY_DB2_DB_THREAD around create flags using DB_THREAD X-Git-Tag: UCDATA_2_4~412 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa708e7eff0fb8fea09d4d61c09841f2ff70a6b4;p=openldap #ifdef HAVE_BERKELEY_DB2_DB_THREAD around create flags using DB_THREAD --- diff --git a/include/ldbm.h b/include/ldbm.h index 9fd65730e3..cf5a75e429 100644 --- a/include/ldbm.h +++ b/include/ldbm.h @@ -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