From 4fa5cef49117a02600a53b21c343ed8ce6d508ce Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Tue, 9 Apr 2002 22:02:05 +0000 Subject: The malloc/free functions should be in stdlib.h, but if we can't find stdlib.h then try including malloc.h. Maybe this will allow clean compiling on some platforms. --- src/tinyproxy.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tinyproxy.h b/src/tinyproxy.h index 9da6b59..dfbceea 100644 --- a/src/tinyproxy.h +++ b/src/tinyproxy.h @@ -1,4 +1,4 @@ -/* $Id: tinyproxy.h,v 1.26 2001-12-28 22:31:12 rjkaes Exp $ +/* $Id: tinyproxy.h,v 1.27 2002-04-09 22:02:05 rjkaes Exp $ * * See 'tinyproxy.c' for a detailed description. * @@ -101,9 +101,6 @@ #ifdef HAVE_GRP_H # include #endif -#ifdef HAVE_MALLOC_H -# include -#endif #ifdef HAVE_MEMORY_H # include #endif @@ -131,6 +128,10 @@ #endif #ifdef HAVE_STDLIB_H # include +#else +# ifdef HAVE_MALLOC_H +# include +# endif #endif #ifdef HAVE_STRING_H # include -- cgit v1.2.3