# HG changeset patch # User Kim Alvefur # Date 1536328212 -7200 # Node ID fa6a6f921405b1515b46a3e536648f2902859e7d # Parent 3a13c246b877c5bb6cb26945c49d7348ae4da1a1 util.pposix: Restrict use of malloc_info to glibc Fixes build on musl based distros like Alpine linux diff -r 3a13c246b877 -r fa6a6f921405 util-src/pposix.c --- a/util-src/pposix.c Fri Sep 07 15:25:33 2018 +0200 +++ b/util-src/pposix.c Fri Sep 07 15:50:12 2018 +0200 @@ -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