summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/malloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 2c63b65..5d7d7e8 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -1,2 +1,6 @@
/* $FreeBSD$ */
+#if __STDC__
#error "<malloc.h> has been replaced by <stdlib.h>"
+#else
+#include <stdlib.h>
+#endif
OpenPOWER on IntegriCloud