diff options
author | max <max@FreeBSD.org> | 1997-01-14 13:06:33 +0800 |
---|---|---|
committer | max <max@FreeBSD.org> | 1997-01-14 13:06:33 +0800 |
commit | 21abcdb7467de525fa0a656b11b796ca97c4ed05 (patch) | |
tree | 8a23d7ccdf60ceed2ec2d67f8109f0b9f721ef36 | |
parent | b0a72dc83fcb078aeb8f62dbe10fa34df888b991 (diff) | |
download | freebsd-ports-gnome-21abcdb7467de525fa0a656b11b796ca97c4ed05.tar.gz freebsd-ports-gnome-21abcdb7467de525fa0a656b11b796ca97c4ed05.tar.zst freebsd-ports-gnome-21abcdb7467de525fa0a656b11b796ca97c4ed05.zip |
Include osreldate.h to determine if if_var.h is needed.
-rw-r--r-- | net/cap/files/patch-ad | 30 | ||||
-rw-r--r-- | net/cap/files/patch-ah | 13 |
2 files changed, 23 insertions, 20 deletions
diff --git a/net/cap/files/patch-ad b/net/cap/files/patch-ad index a52bbae90706..b84cd4c261e0 100644 --- a/net/cap/files/patch-ad +++ b/net/cap/files/patch-ad @@ -1,25 +1,21 @@ ---- support/ethertalk/bpfiltp.c.orig Fri Jan 10 10:29:53 1997 -+++ support/ethertalk/bpfiltp.c Fri Jan 10 11:24:11 1997 -@@ -41,7 +41,7 @@ +--- support/ethertalk/bpfiltp.c.orig Tue Jan 14 11:15:34 1997 ++++ support/ethertalk/bpfiltp.c Tue Jan 14 13:18:36 1997 +@@ -41,6 +41,14 @@ #include <net/if.h> #include <net/bpf.h> #include <netinet/in.h> --#include <netinet/if_ether.h> -+#include <net/ethernet.h> - #include <netdb.h> - #include <ctype.h> - -@@ -63,6 +63,9 @@ - #ifdef __FreeBSD__ - #define MULTI_BPF_PKT - #define USE_SIOCGIFCONF ++#ifdef __FreeBSD__ +#if __FreeBSD__ >= 2 +#include <osreldate.h> +#endif - #endif __FreeBSD__ - - #ifdef NeXT -@@ -785,7 +788,7 @@ ++#if __FreeBSD_version >= 199702 ++#include <net/if_var.h> ++#endif ++#endif /*__FreeBSD__*/ + #include <netinet/if_ether.h> + #include <netdb.h> + #include <ctype.h> +@@ -785,7 +793,7 @@ bcopy(eaddr, &eh.ether_dhost, 6); #ifdef PHASE2 @@ -28,7 +24,7 @@ /* This should really be fixed in the kernel. */ eh.ether_type = buflen; #else -@@ -806,7 +809,7 @@ +@@ -806,7 +814,7 @@ *q++ = (eph->protocol >> 8) & 0xff; *q++ = (eph->protocol & 0xff); #else PHASE2 diff --git a/net/cap/files/patch-ah b/net/cap/files/patch-ah index 4c2874937d18..77553f4dd0d5 100644 --- a/net/cap/files/patch-ah +++ b/net/cap/files/patch-ah @@ -1,10 +1,17 @@ ---- support/uab/aarp.c.orig Thu Jan 9 07:45:00 1997 -+++ support/uab/aarp.c Thu Jan 9 07:49:45 1997 -@@ -40,6 +40,7 @@ +--- support/uab/aarp.c.orig Tue Jan 14 11:11:30 1997 ++++ support/uab/aarp.c Tue Jan 14 13:31:06 1997 +@@ -40,6 +40,14 @@ #ifdef pyr #include <netinet/in_ether.h> #else pyr ++#ifdef __FreeBSD__ ++#if __FreeBSD__ >= 2 ++#include <osreldate.h> ++#endif ++#if __FreeBSD_version >= 199702 +#include <net/if_var.h> ++#endif ++#endif /*__FreeBSD__*/ #include <netinet/if_ether.h> #endif pyr |