From 13e41eed5cea6e26d23cc001c5b76089b256384f Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Fri, 7 Dec 2001 17:14:54 +0000
Subject: [PATCH] Suck in BDB4 support from HEAD

---
 libraries/libldbm/ldbm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/libldbm/ldbm.c b/libraries/libldbm/ldbm.c
index e6fdfa6e14..b9aedcf25c 100644
--- a/libraries/libldbm/ldbm.c
+++ b/libraries/libldbm/ldbm.c
@@ -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
 
-- 
GitLab