[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
This commit is contained in:
parent
1a7b382b65
commit
25f6fa29fa
17
libs/tcp_wrappers/patches/003-scaffold_malloc.patch
Normal file
17
libs/tcp_wrappers/patches/003-scaffold_malloc.patch
Normal file
@ -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"
|
Loading…
x
Reference in New Issue
Block a user