]> git.sur5r.net Git - openldap/commitdiff
Use DB_VERSION_ to set BDB_ENOUGH
authorKurt Zeilenga <kurt@openldap.org>
Sat, 8 Feb 2003 07:38:22 +0000 (07:38 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 8 Feb 2003 07:38:22 +0000 (07:38 +0000)
servers/slapd/back-bdb/idl.c

index 0b463f7a565a758475e774818e48b3ad5c9460b7..1454e18f93967a9112d8e025db9bec0c2d1274cb 100644 (file)
@@ -313,9 +313,12 @@ bdb_idl_fetch_key(
         * stack space is too limited.
         *
         * configure now requires Berkeley DB 4.1.
-        * if using 4.0, set BDB_ENOUGH to 5
         */
-#define BDB_ENOUGH 1
+#if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR == 0)
+#      define BDB_ENOUGH 5
+#else
+#      define BDB_ENOUGH 1
+#endif
        ID buf[BDB_IDL_DB_SIZE*BDB_ENOUGH];
 
        char keybuf[16];