mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-19 02:28:47 -05:00
Berkeley DB 4.1 support
This commit is contained in:
parent
8b3b334322
commit
d5cc3d7684
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue