diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-03-16 11:40:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-03-16 11:40:15 +0000 |
commit | 14253f34f49f998f2552de1c1c47bb663cbb6fc3 (patch) | |
tree | 14870dd491f555a4e33c7cda9487481a03978211 | |
parent | ab057975009f2ba23117786461ce9d29a0d1a454 (diff) |
if stdlib.h exists, malloc.h should not be included (thus stop OpenBSD
complaints)
-rw-r--r-- | lib/getdate.y | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index 6ae7eff32..efcf04255 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -29,7 +29,7 @@ #include <sys/types.h> #include <sys/malloc.h> #else -#include <malloc.h> + #endif #include <string.h> #include <stdio.h> @@ -37,6 +37,12 @@ #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)) |