From: Hallvard Furuseth Date: Sun, 31 Mar 2013 21:47:45 +0000 (+0200) Subject: Fix MDB_DEBUG compile when no varargs macros. X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~89^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a70b026f6b4df47dc7f2c5263dcf6e517b201dd1;p=openldap Fix MDB_DEBUG compile when no varargs macros. Variables mdb_debug, mdb_debug_start were used undefined. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 39da579c62..4c2735ded2 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -286,6 +286,8 @@ typedef MDB_ID txnid_t; #endif #if !(__STDC_VERSION__ >= 199901L || defined(__GNUC__)) +# undef MDB_DEBUG +# define MDB_DEBUG 0 # define DPRINTF (void) /* Vararg macros may be unsupported */ #elif MDB_DEBUG static int mdb_debug;