mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
Import backwards compatibility for BDB 3.0.x
This commit is contained in:
parent
3eae355b2d
commit
2f62c3722a
1 changed files with 5 additions and 0 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue