]> git.sur5r.net Git - openldap/commitdiff
Minor fix to allow build with BDB 4
authorHoward Chu <hyc@openldap.org>
Fri, 7 Dec 2001 03:56:16 +0000 (03:56 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 7 Dec 2001 03:56:16 +0000 (03:56 +0000)
libraries/libldbm/ldbm.c

index e6fdfa6e1439e4f1c5f04efc3666c68132598df4..b9aedcf25cb0d7225c0c2a1870ee3f0c91601a0f 100644 (file)
@@ -315,7 +315,7 @@ ldbm_open( DB_ENV *env, char *name, int rw, int mode, int dbcachesize )
                return NULL;
        }
 
-#if DB_VERSION_MINOR < 3
+#if DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR < 3
        ret->set_malloc( ret, ldbm_malloc );
 #endif