From 1862077b249f5a7642c9c6573745e25f6aa8a976 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 8 Feb 2003 07:38:22 +0000 Subject: [PATCH] Use DB_VERSION_ to set BDB_ENOUGH --- servers/slapd/back-bdb/idl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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]; -- 2.39.5