aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-07 15:50:12 +0200
committerKim Alvefur <zash@zash.se>2018-09-07 15:50:12 +0200
commit6391242937bb364d32014bec881adaa0b8ce24a8 (patch)
treeff79ec31b259533ac3b5d0ea4cbeb52e83e6eb10
parent53c20a796e75f5d2ca4acb6a2448420bccea5a0e (diff)
downloadprosody-6391242937bb364d32014bec881adaa0b8ce24a8.tar.gz
prosody-6391242937bb364d32014bec881adaa0b8ce24a8.zip
util.pposix: Restrict use of malloc_info to glibc
Fixes build on musl based distros like Alpine linux
-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 00592c99..e7d91b37 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -58,7 +58,7 @@
#include <linux/falloc.h>
#endif
-#if !defined(WITHOUT_MALLINFO) && defined(__linux__)
+#if !defined(WITHOUT_MALLINFO) && defined(__linux__) && defined(__GLIBC__)
#include <malloc.h>
#define WITH_MALLINFO
#endif