git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f1a8a73
)
Fix build for earlier version Berkeley DB
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 16 Jul 2017 12:52:57 +0000
(13:52 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 23 Jul 2017 14:51:19 +0000
(15:51 +0100)
src/src/dbstuff.h
patch
|
blob
|
history
diff --git
a/src/src/dbstuff.h
b/src/src/dbstuff.h
index a4ee603bb9cd45b66c090e935390409ba49fecc7..aec549f485932f689fabb0994c9928b61f2b2747 100644
(file)
--- a/
src/src/dbstuff.h
+++ b/
src/src/dbstuff.h
@@
-116,13
+116,19
@@
definition of DB_VERSION_STRING, which is present in versions 2.x onwards. */
#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
# define EXIM_DB DB_ENV
/* Cursor type, for scanning */
#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
# define EXIM_DB DB_ENV
/* Cursor type, for scanning */
-#define EXIM_CURSOR DBC
+#
define EXIM_CURSOR DBC
/* The datum type used for queries */
/* The datum type used for queries */
-#define EXIM_DATUM DBT
+#
define EXIM_DATUM DBT
/* Some text for messages */
/* Some text for messages */
-#define EXIM_DBTYPE "db (v4.1+)"
+# define EXIM_DBTYPE "db (v4.1+)"
+
+/* Only more-recent versions. 5+ ? */
+# ifndef DB_FORCESYNC
+# define DB_FORCESYNC 0
+# endif
+
/* Access functions */
/* Access functions */