diff --git a/util-src/pposix.c b/util-src/pposix.c
index e70a9d7..b9729ab 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -52,7 +52,7 @@
 #include <linux/falloc.h>
 #endif
 
-#if !defined(WITHOUT_MALLINFO) && defined(__linux__)
+#ifdef __GLIBC__
 #include <malloc.h>
 #define WITH_MALLINFO
 #endif
