From: Kurt Zeilenga Date: Thu, 29 Aug 2002 03:45:13 +0000 (+0000) Subject: Berkeley DB 4.1 support X-Git-Tag: OPENLDAP_REL_ENG_2_1_5~96 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d5cc3d7684035b61ea4e1670b9d38cb36463fd6e;p=openldap Berkeley DB 4.1 support --- diff --git a/libraries/libldbm/ldbm.c b/libraries/libldbm/ldbm.c index 112a54a9b4..31c845416f 100644 --- a/libraries/libldbm/ldbm.c +++ b/libraries/libldbm/ldbm.c @@ -335,7 +335,11 @@ ldbm_open( DB_ENV *env, char *name, int rw, int mode, int dbcachesize ) __atoe(n2); name = n2; #endif +#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR > 0 && DB_VERSION_PATCH >= 17 + err = ret->open( ret, NULL, name, NULL, DB_TYPE, rw, mode); +#else err = ret->open( ret, name, NULL, DB_TYPE, rw, mode); +#endif if ( err != 0 ) { int tmp = errno;