From: Amos Jeffries Date: Thu, 22 Apr 2010 12:56:15 +0000 (+1200) Subject: Remove GNUregex malloc hack X-Git-Tag: SQUID_3_1_2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfe2de419e4c1eb1770306aee5e91a65d7a63293;p=thirdparty%2Fsquid.git Remove GNUregex malloc hack stdlib.h is provided by the OS compat layer of Squid. If malloc/realloc truely need to be redefined they can be re-added to the specific OS compat import with the correct prototypes. --- diff --git a/compat/GnuRegex.c b/compat/GnuRegex.c index b5ba9eb6b5..222429cd5a 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 @@ -48,13 +48,6 @@ #include #endif -#ifdef STDC_HEADERS -#include -#else -char *malloc(); -char *realloc(); -#endif - /* Define the syntax stuff for \<, \>, etc. */