if stdlib.h exists, malloc.h should not be included (thus stop OpenBSD
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Mar 2000 11:40:15 +0000 (11:40 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 16 Mar 2000 11:40:15 +0000 (11:40 +0000)
complaints)

lib/getdate.y

index 6ae7eff..efcf042 100644 (file)
@@ -29,7 +29,7 @@
 #include <sys/types.h>
 #include <sys/malloc.h>
 #else
-#include <malloc.h>
+
 #endif
 #include <string.h>
 #include <stdio.h>
 
 #if HAVE_STDLIB_H
 # include <stdlib.h> /* for `free'; used by Bison 1.27 */
+#else
+
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
 #endif
 
 #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))