From: Kurt Zeilenga Date: Mon, 3 Sep 2001 19:01:09 +0000 (+0000) Subject: Import backwards compatibility for BDB 3.0.x X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1131 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f62c3722a824cdfe8735c2b69ff20e90ca6985a;p=openldap Import backwards compatibility for BDB 3.0.x --- diff --git a/libraries/libldbm/ldbm.c b/libraries/libldbm/ldbm.c index 734af29dfa..2b40fd5eda 100644 --- a/libraries/libldbm/ldbm.c +++ b/libraries/libldbm/ldbm.c @@ -272,7 +272,12 @@ DB_ENV *ldbm_initialize_env(const char *home, int dbcachesize, int *envdirok) envFlags |= DB_INIT_MPOOL | DB_INIT_CDB | DB_USE_ENVIRON; +#if DB_VERSION_MAJOR > 3 || DB_VERSION_MINOR > 0 err = env->open( env, home, envFlags, 0 ); +#else + /* 3.0.x requires an extra argument */ + err = env->open( env, home, NULL, envFlags, 0 ); +#endif if ( err != 0 ) {