From 2f62c3722a824cdfe8735c2b69ff20e90ca6985a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 3 Sep 2001 19:01:09 +0000 Subject: [PATCH] Import backwards compatibility for BDB 3.0.x --- libraries/libldbm/ldbm.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ) { -- 2.39.5