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
commit3c789f1ac723d5e4673405d8cc250a977de17e53 (patch)
tree3b6fd0f18273a9a4cc5e4f99cc83003f8398ba39 /util-src/pposix.c
parent5ca8621ef4c3220607ed80f8fc3f822b881e8a71 (diff)
downloadprosody-3c789f1ac723d5e4673405d8cc250a977de17e53.tar.gz
prosody-3c789f1ac723d5e4673405d8cc250a977de17e53.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