]> git.sur5r.net Git - openldap/commitdiff
Berkeley DB 4.1 support
authorKurt Zeilenga <kurt@openldap.org>
Thu, 29 Aug 2002 03:45:13 +0000 (03:45 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 29 Aug 2002 03:45:13 +0000 (03:45 +0000)
libraries/libldbm/ldbm.c

index 112a54a9b43cfa9a4a2e7ca88dcc8f773f456490..31c845416f9702ee40d58d901d4b3fc088c5ad82 100644 (file)
@@ -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;