From: Jeremy Harris Date: Sun, 16 Jul 2017 12:52:57 +0000 (+0100) Subject: Fix build for earlier version Berkeley DB X-Git-Tag: exim-4_89_1~10 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/be371985bd77d7d03b0c314a44a3414d8cc2445d?ds=inline Fix build for earlier version Berkeley DB --- 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 */