#ifdef HAVE_BERKELEY_DB2_DB_THREAD around create flags using DB_THREAD

This commit is contained in:
Kurt Zeilenga 1999-09-21 17:50:31 +00:00
parent 5ec0843035
commit aa708e7eff

View 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