aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-07 22:33:57 +0100
committerKim Alvefur <zash@zash.se>2017-03-07 22:33:57 +0100
commit8a9a5fe783823c920b865fa55153ec427b490f5d (patch)
tree3b6fd0f18273a9a4cc5e4f99cc83003f8398ba39 /util-src/pposix.c
parentd92bf062217525cfde52aca020f92b5e040dc350 (diff)
downloadprosody-8a9a5fe783823c920b865fa55153ec427b490f5d.tar.gz
prosody-8a9a5fe783823c920b865fa55153ec427b490f5d.zip
util.pposix: Limit meminfo to Linux until we can figure out how to get this info on other platforms
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r--util-src/pposix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index f9c07e54..78c02365 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -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