From 73368260e2c09425c583ebce1e04558e09cf03d7 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 12 Apr 2010 05:24:45 -0600 Subject: [PATCH] Remove GNUregex malloc hack stdlib.h is provided by the OS compat layer of Squid. If malloc/realloc truely need to be redefined they cna be re-added to the specific OS compat import with the correct prototypes. --- compat/GnuRegex.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/compat/GnuRegex.c b/compat/GnuRegex.c index 250d336498..6606549028 100644 --- a/compat/GnuRegex.c +++ b/compat/GnuRegex.c @@ -24,7 +24,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. */ /* AIX requires this to be the first thing in the file. */ -#if defined (_AIX) && !defined (REGEX_MALLOC) +#if defined (_AIX) && !defined(REGEX_MALLOC) #pragma alloca #endif @@ -49,13 +49,6 @@ #include #endif -#ifdef STDC_HEADERS -#include -#else -char *malloc(); -char *realloc(); -#endif - /* Define the syntax stuff for \<, \>, etc. */ -- 2.47.3