From 8d7eede4acd38f3620c9d1afa154286a69c367b1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 7 Sep 2018 15:50:12 +0200 Subject: util.pposix: Restrict use of malloc_info to glibc Fixes build on musl based distros like Alpine linux --- util-src/pposix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src') 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 #endif -#if !defined(WITHOUT_MALLINFO) && defined(__linux__) +#if !defined(WITHOUT_MALLINFO) && defined(__linux__) && defined(__GLIBC__) #include #define WITH_MALLINFO #endif -- cgit v1.2.3