Diff

util-src/pposix.c @ 9277:fa6a6f921405

util.pposix: Restrict use of malloc_info to glibc Fixes build on musl based distros like Alpine linux
author Kim Alvefur <zash@zash.se>
date Fri, 07 Sep 2018 15:50:12 +0200
parent 9276:3a13c246b877
child 9279:d5c771097ea7
line wrap: on
line diff
--- 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 <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