summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/mcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/mcheck.c')
-rw-r--r--newlib/libc/sys/linux/mcheck.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/mcheck.c b/newlib/libc/sys/linux/mcheck.c
index 9e42dccad..eeb99da89 100644
--- a/newlib/libc/sys/linux/mcheck.c
+++ b/newlib/libc/sys/linux/mcheck.c
@@ -22,6 +22,8 @@
#ifndef _MALLOC_INTERNAL
# define _MALLOC_INTERNAL
+# include <features.h>
+# define _LIBC 1
# include <malloc.h>
# include <mcheck.h>
# include <stdint.h>