summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index d34ff9c4de..0f111cdbf3 100644
--- a/gc.c
+++ b/gc.c
@@ -40,7 +40,11 @@
# define malloc_usable_size(a) _msize(a)
# endif
#else
-# include <malloc.h>
+# ifdef HAVE_MALLOC_H
+# include <malloc.h>
+# elif defined(HAVE_MALLOC_NP_H)
+# include <malloc_np.h>
+# endif
#endif
#if /* is ASAN enabled? */ \