openwrt-packages/libs/tcp_wrappers/patches/003-scaffold_malloc.patch

18 lines
346 B
Diff

--- a/scaffold.c
+++ b/scaffold.c
@@ -20,13 +20,12 @@ static char sccs_id[] = "@(#) scaffold.c
#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"