util.pposix: Limit meminfo to Linux until we can figure out how to get this info on other platforms
authorKim Alvefur <zash@zash.se>
Tue, 07 Mar 2017 22:33:57 +0100
changeset 7968 57f98394b830
parent 7967 1023f2add7fe
child 7969 30309fd01d76
util.pposix: Limit meminfo to Linux until we can figure out how to get this info on other platforms
util-src/pposix.c
--- a/util-src/pposix.c	Tue Mar 07 21:48:05 2017 +0100
+++ b/util-src/pposix.c	Tue Mar 07 22:33:57 2017 +0100
@@ -52,7 +52,7 @@
 #include <linux/falloc.h>
 #endif
 
-#if !defined(WITHOUT_MALLINFO)
+#if !defined(WITHOUT_MALLINFO) && defined(__linux__)
 #include <malloc.h>
 #define WITH_MALLINFO
 #endif