summaryrefslogtreecommitdiff
path: root/net/bing/patches
diff options
context:
space:
mode:
authorminskim <minskim>2006-07-21 16:19:58 +0000
committerminskim <minskim>2006-07-21 16:19:58 +0000
commitb45ac6e01cc375545bd943fa4e6943feae7c3889 (patch)
tree7c033c6a7b3413a4fe080380016194b48cba6f5e /net/bing/patches
parent4642df89e8b3f807ba94aa2938887f43e5dad518 (diff)
downloadpkgsrc-b45ac6e01cc375545bd943fa4e6943feae7c3889.tar.gz
Remove conflicting definition of malloc(); include stdlib.h instead.
Diffstat (limited to 'net/bing/patches')
-rw-r--r--net/bing/patches/patch-ab21
1 files changed, 19 insertions, 2 deletions
diff --git a/net/bing/patches/patch-ab b/net/bing/patches/patch-ab
index 30aa1828418..2cbcc884892 100644
--- a/net/bing/patches/patch-ab
+++ b/net/bing/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.2 2005/12/18 18:44:09 joerg Exp $
+$NetBSD: patch-ab,v 1.3 2006/07/21 16:19:58 minskim Exp $
--- bing.c.orig 1995-07-20 23:45:32.000000000 +0000
+++ bing.c
@@ -11,7 +11,15 @@ $NetBSD: patch-ab,v 1.2 2005/12/18 18:44:09 joerg Exp $
#include <netinet/in_systm.h>
#include <netinet/in.h>
-@@ -1221,7 +1221,7 @@ int main(argc, argv)
+@@ -169,6 +169,7 @@ static char rcsid[] = "bing.c,v 1.16 199
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <errno.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <limits.h>
+
+@@ -1221,7 +1222,7 @@ int main(argc, argv)
int argc;
char **argv;
{
@@ -20,3 +28,12 @@ $NetBSD: patch-ab,v 1.2 2005/12/18 18:44:09 joerg Exp $
extern char *optarg;
struct protoent *proto;
struct in_addr ifaddr;
+@@ -1230,7 +1231,7 @@ int main(argc, argv)
+ int i;
+ int ch, hold, recv_packlen, preload;
+ u_char *datap, *recv_packet;
+- char *target1, *target2, *malloc();
++ char *target1, *target2;
+ u_char ttl, loop;
+ #ifdef IP_OPTIONS
+ char rspace[3 + 4 * NROUTES + 1]; /* record route space */