Correct use of HAVE_MALLINFO
authorDennis Schafroth <dennis@indexdata.com>
Wed, 30 Mar 2011 14:23:04 +0000 (16:23 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 30 Mar 2011 14:23:04 +0000 (16:23 +0200)
src/http_command.c

index 5b84951..eb799f0 100644 (file)
@@ -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 <malloc.h>
+
 void print_meminfo(WRBUF wrbuf) {
+
     struct mallinfo minfo;
     minfo = mallinfo();
     wrbuf_printf(wrbuf, "  <memory>\n"