From 397c357c13775d4e2375132129e830b86a7d049f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 30 Nov 2014 17:30:20 +0300 Subject: Fix compilation without memory manager. configure example: ./configure --enable-manager=no --- src/common/console.c | 2 ++ src/common/malloc.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/common') diff --git a/src/common/console.c b/src/common/console.c index 577d1a3f0..6c5a5c886 100644 --- a/src/common/console.c +++ b/src/common/console.c @@ -112,7 +112,9 @@ CPCMD_C(ers_report,server) { * Displays memory usage **/ CPCMD_C(mem_report,server) { +#ifdef USE_MEMMGR memmgr_report(line?atoi(line):0); +#endif } /** diff --git a/src/common/malloc.c b/src/common/malloc.c index 625875b76..244b1114c 100644 --- a/src/common/malloc.c +++ b/src/common/malloc.c @@ -822,8 +822,10 @@ void malloc_final (void) { } void malloc_init (void) { +#ifdef USE_MEMMGR memmgr_usage_bytes_t = 0; memmgr_usage_bytes = 0; +#endif #if defined(DMALLOC) && defined(CYGWIN) // http://dmalloc.com/docs/latest/online/dmalloc_19.html dmalloc_debug_setup(getenv("DMALLOC_OPTIONS")); -- cgit v1.2.3-60-g2f50