allow for APPLE MACH compilation
[fw/sdcc] / support / Util / NewAlloc.c
index c603b17ce38323b3e3f9f348593d1646a8c58ddd..22aa198b5c8f3cc779f0fc1fbd9da7ab4c98a9e5 100644 (file)
@@ -28,7 +28,11 @@ functions.
 */
 
 #include <stdio.h>
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/malloc.h>
+#else
 #include <malloc.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <memory.h>