From: Amos Jeffries Date: Mon, 12 Apr 2010 11:24:45 +0000 (-0600) Subject: Remove GNUregex malloc hack X-Git-Tag: SQUID_3_2_0_1~302 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73368260e2c09425c583ebce1e04558e09cf03d7;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 cna be re-added to the specific OS compat import with the correct prototypes. --- 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. */