From: Kurt Zeilenga Date: Sat, 8 Feb 2003 07:38:22 +0000 (+0000) Subject: Use DB_VERSION_ to set BDB_ENOUGH X-Git-Tag: NO_SLAP_OP_BLOCKS~404 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1862077b249f5a7642c9c6573745e25f6aa8a976;p=openldap Use DB_VERSION_ to set BDB_ENOUGH --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 0b463f7a56..1454e18f93 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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];