Skip to content
Snippets Groups Projects
Commit aa708e7e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

#ifdef HAVE_BERKELEY_DB2_DB_THREAD around create flags using DB_THREAD

parent 5ec08430
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment