diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-07 15:50:12 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-07 15:50:12 +0200 |
commit | 8d7eede4acd38f3620c9d1afa154286a69c367b1 (patch) | |
tree | ff79ec31b259533ac3b5d0ea4cbeb52e83e6eb10 /util-src | |
parent | cc97b763045ecc5a813c13f563c373390588e7d3 (diff) | |
download | prosody-8d7eede4acd38f3620c9d1afa154286a69c367b1.tar.gz prosody-8d7eede4acd38f3620c9d1afa154286a69c367b1.zip |
util.pposix: Restrict use of malloc_info to glibc
Fixes build on musl based distros like Alpine linux
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/pposix.c | 2 |
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 |