From 2cd4639d9c1f2f54935c393002cace28a4076a4b Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 30 Mar 2011 16:23:04 +0200 Subject: [PATCH] Correct use of HAVE_MALLINFO --- src/http_command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http_command.c b/src/http_command.c index 5b84951..eb799f0 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -41,9 +41,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "settings.h" #include "client.h" -#ifdef __LINUX__ +#ifdef HAVE_MALLINFO #include + void print_meminfo(WRBUF wrbuf) { + struct mallinfo minfo; minfo = mallinfo(); wrbuf_printf(wrbuf, " \n" -- 1.7.10.4