]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove GNUregex malloc hack
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 22 Apr 2010 12:56:15 +0000 (00:56 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 22 Apr 2010 12:56:15 +0000 (00:56 +1200)
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.

compat/GnuRegex.c

index b5ba9eb6b544c4c0c490b4ed4b14fc9423d9c98f..222429cd5a552d5ac783e5792f7b829022483651 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.  */