diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-07-16 13:52:57 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-07-16 13:52:57 +0100 |
commit | 0d64dcb05b89ba890508cd368965e042bb442487 (patch) | |
tree | 29a9d04512f01a9e480a4d40f37d8717d501b170 /src | |
parent | b93be52e2724a627c4cbd07ecc010cdfd81cefbd (diff) |
Fix build for earlier version Berkeley DB
Diffstat (limited to 'src')
-rw-r--r-- | src/src/dbstuff.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/src/dbstuff.h b/src/src/dbstuff.h index a4ee603bb..aec549f48 100644 --- 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 */ -#define EXIM_CURSOR DBC +# define EXIM_CURSOR DBC /* The datum type used for queries */ -#define EXIM_DATUM DBT +# define EXIM_DATUM DBT /* 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 */ |