summaryrefslogtreecommitdiff
path: root/net/choparp/patches
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-10-03 01:29:19 +0000
committerhubertf <hubertf>2000-10-03 01:29:19 +0000
commite7b3cc353fc9e53061c4ab3f9c2c8ee23670d2a1 (patch)
tree707bb17413f028c2a72dd90b3c7c9de45c659152 /net/choparp/patches
parent5c993f7bb33af48fe385b46e27845594e20483b0 (diff)
downloadpkgsrc-e7b3cc353fc9e53061c4ab3f9c2c8ee23670d2a1.tar.gz
Make this go on alpha, by pulling in the right headers
(it's interresting to see what's all accepted on some other archs...)
Diffstat (limited to 'net/choparp/patches')
-rw-r--r--net/choparp/patches/patch-ac18
1 files changed, 14 insertions, 4 deletions
diff --git a/net/choparp/patches/patch-ac b/net/choparp/patches/patch-ac
index ae2aa5ff678..7c209f18776 100644
--- a/net/choparp/patches/patch-ac
+++ b/net/choparp/patches/patch-ac
@@ -1,8 +1,18 @@
-$NetBSD: patch-ac,v 1.3 1999/09/12 20:12:19 dbj Exp $
+$NetBSD: patch-ac,v 1.4 2000/10/03 01:29:19 hubertf Exp $
--- choparp.c.orig Tue Oct 7 05:29:46 1997
-+++ choparp.c Sun Sep 12 15:58:41 1999
-@@ -24,6 +24,7 @@
++++ choparp.c
+@@ -12,6 +12,9 @@
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <string.h>
++#ifdef __NetBSD__
++# include <stdlib.h> /* malloc() */
++#endif
+ #include <sys/types.h>
+ #include <fcntl.h>
+ #include <sys/time.h>
+@@ -24,6 +27,7 @@
#include <netinet/if_ether.h>
#include <sys/param.h>
#include <errno.h>
@@ -10,7 +20,7 @@ $NetBSD: patch-ac,v 1.3 1999/09/12 20:12:19 dbj Exp $
#define BPFFILENAME "/dev/bpf%d" /* bpf file template */
#ifndef NBPFILTER /* number of available bpf */
-@@ -217,20 +218,35 @@
+@@ -217,20 +221,35 @@
void
loop(int fd, char *buf, size_t buflen){