* configure, configure.in, sdcc_vc_in.h, sdcconf.h,
[fw/sdcc] / as / hc08 / lklibr.c
index 3982e03e3f88795b9feb38e0045d3151b5725023..2481d9f02a8e312f005e6bdf83a2467b82b453bf 100644 (file)
 #if defined(__APPLE__) && defined(__MACH__)
 #include <sys/types.h>
 #include <sys/malloc.h>
-#elseif !defined(__FreeBSD__)
+#else
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>