From: Dennis Schafroth Date: Wed, 30 Mar 2011 14:23:04 +0000 (+0200) Subject: Correct use of HAVE_MALLINFO X-Git-Tag: v1.5.6~11 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=2cd4639d9c1f2f54935c393002cace28a4076a4b;p=pazpar2-moved-to-github.git Correct use of HAVE_MALLINFO --- 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"