From 14253f34f49f998f2552de1c1c47bb663cbb6fc3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 16 Mar 2000 11:40:15 +0000 Subject: [PATCH] if stdlib.h exists, malloc.h should not be included (thus stop OpenBSD complaints) --- lib/getdate.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 #include #else -#include + #endif #include #include @@ -37,6 +37,12 @@ #if HAVE_STDLIB_H # include /* for `free'; used by Bison 1.27 */ +#else + +#ifdef HAVE_MALLOC_H +#include +#endif + #endif #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))