From e1d42189fa2d5b0763b2bcaba07e2a8bd0014498 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 4 Jul 2007 22:55:24 +0000 Subject: [PATCH] ITS#4990: Fix LDAP_MEMORY_DEBUG and LDAP_MEMORY_DEBUG=0 compilation. Declare ber_int_meminuse. Fix '#if' -> '#ifdef' LDAP_MEMORY_DEBUG. --- libraries/liblber/memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5