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 | 6391242937bb364d32014bec881adaa0b8ce24a8 (patch) | |
tree | ff79ec31b259533ac3b5d0ea4cbeb52e83e6eb10 /util-src | |
parent | 53c20a796e75f5d2ca4acb6a2448420bccea5a0e (diff) | |
download | prosody-6391242937bb364d32014bec881adaa0b8ce24a8.tar.gz prosody-6391242937bb364d32014bec881adaa0b8ce24a8.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 |