[package] use stdlib malloc definition instead, fixes linking failures with different...
authorFlorian Fainelli <florian@openwrt.org>
Tue, 26 May 2009 14:11:18 +0000 (14:11 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 26 May 2009 14:11:18 +0000 (14:11 +0000)
SVN-Revision: 16078

libs/tcp_wrappers/patches/003-scaffold_malloc.patch [new file with mode: 0644]

diff --git a/libs/tcp_wrappers/patches/003-scaffold_malloc.patch b/libs/tcp_wrappers/patches/003-scaffold_malloc.patch
new file mode 100644 (file)
index 0000000..a0f7d90
--- /dev/null
@@ -0,0 +1,17 @@
+--- tcp_wrappers_7.6/scaffold.c.old    2009-05-25 13:41:07.000000000 +0200
++++ tcp_wrappers_7.6/scaffold.c        2009-05-25 13:42:22.000000000 +0200
+@@ -20,13 +20,12 @@
+ #include <syslog.h>
+ #include <setjmp.h>
+ #include <string.h>
++#include <stdlib.h>
+ #ifndef INADDR_NONE
+ #define       INADDR_NONE     (-1)            /* XXX should be 0xffffffff */
+ #endif
+-extern char *malloc();
+-
+ /* Application-specific. */
+ #include "tcpd.h"