From: Hallvard Furuseth Date: Wed, 4 Jul 2007 22:55:24 +0000 (+0000) Subject: ITS#4990: Fix LDAP_MEMORY_DEBUG and LDAP_MEMORY_DEBUG=0 compilation. X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~352 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1d42189fa2d5b0763b2bcaba07e2a8bd0014498;p=openldap ITS#4990: Fix LDAP_MEMORY_DEBUG and LDAP_MEMORY_DEBUG=0 compilation. Declare ber_int_meminuse. Fix '#if' -> '#ifdef' LDAP_MEMORY_DEBUG. --- diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 0681869862..3f569f7f8a 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -24,7 +24,7 @@ #include #endif -#if LDAP_MEMORY_DEBUG +#ifdef LDAP_MEMORY_DEBUG /* * LDAP_MEMORY_DEBUG should only be enabled for the purposes of * debugging memory management within OpenLDAP libraries and slapd. @@ -71,6 +71,7 @@ static const struct ber_mem_hdr ber_int_mem_hdr = { LBER_MEM_JUNK, 0, 0 }; * put allocations/frees together. It is then a simple matter to write a script * to find any allocations that don't have a buffer free function. */ +long ber_int_meminuse = 0; #ifdef LDAP_MEMORY_TRACE static ber_int_t sequence = 0; #endif