packages/libs/tcp_wrappers/patches/003-scaffold_malloc.patch
florian 25f6fa29fa [package] use stdlib malloc definition instead, fixes linking failures with different libc (#5195)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16078 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-26 14:11:18 +00:00

18 lines
411 B
Diff

--- 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"