]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove GNUregex malloc hack
authorAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 12 Apr 2010 11:24:45 +0000 (05:24 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 12 Apr 2010 11:24:45 +0000 (05:24 -0600)
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

index 250d336498989027a1d38ab78b601285c24c8cd4..660654902816960d0cad92b6196c33f962893efd 100644 (file)
@@ -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
 
 #include <strings.h>
 #endif
 
-#ifdef STDC_HEADERS
-#include <stdlib.h>
-#else
-char *malloc();
-char *realloc();
-#endif
-
 
 /* Define the syntax stuff for \<, \>, etc.  */