aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2006-10-07 09:13:16 +0800
committershaun <shaun@FreeBSD.org>2006-10-07 09:13:16 +0800
commit5beb347c603ae23180727eb82872ae3e146b4712 (patch)
tree9e1a089c5e423fa6b6e015f7fd5619db5d64f6f4 /net
parentdc63ce37647acee363c1f92ba7b3b4c3a57f3d9b (diff)
downloadfreebsd-ports-gnome-5beb347c603ae23180727eb82872ae3e146b4712.tar.gz
freebsd-ports-gnome-5beb347c603ae23180727eb82872ae3e146b4712.tar.zst
freebsd-ports-gnome-5beb347c603ae23180727eb82872ae3e146b4712.zip
- Fix build on 4.x.
PR: ports/104068 Submitted by: RĂ©mi Denis-Courmont <rdenis@simphalempin.com> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/ndisc6/files/patch-cpp-syntax26
-rw-r--r--net/ndisc6/files/patch-rthdr-fbsd415
2 files changed, 41 insertions, 0 deletions
diff --git a/net/ndisc6/files/patch-cpp-syntax b/net/ndisc6/files/patch-cpp-syntax
new file mode 100644
index 000000000000..0cd4f0046219
--- /dev/null
+++ b/net/ndisc6/files/patch-cpp-syntax
@@ -0,0 +1,26 @@
+Index: src/inet6rth.h
+===================================================================
+--- src/inet6rth.h (revision 345)
++++ src/inet6rth.h (revision 347)
+@@ -75,7 +75,7 @@
+ # define IPV6_RECVRTHDR 56
+ # define IPV6_RTHDR 57
+ # elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__) \
+- defined (__NetBSD__) || defined (__NetBSD_kernel__)
++ || defined (__NetBSD__) || defined (__NetBSD_kernel__)
+ # define IPV6_RECVRTHDR 38
+ # define IPV6_RTHDR 51
+ # else
+Index: src/traceroute.c
+===================================================================
+--- src/traceroute.c (revision 345)
++++ src/traceroute.c (revision 347)
+@@ -54,7 +54,7 @@
+ # if defined (__linux__)
+ # define IPV6_TCLASS 67
+ # elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__) \
+- defined (__NetBSD__) || defined (__NetBSD_kernel__)
++ || defined (__NetBSD__) || defined (__NetBSD_kernel__)
+ # define IPV6_TCLASS 61
+ # else
+ # warning Traffic class support missing! Define IPV6_TCLASS!
diff --git a/net/ndisc6/files/patch-rthdr-fbsd4 b/net/ndisc6/files/patch-rthdr-fbsd4
new file mode 100644
index 000000000000..8cc7209dd3b5
--- /dev/null
+++ b/net/ndisc6/files/patch-rthdr-fbsd4
@@ -0,0 +1,15 @@
+Index: src/inet6rth.h
+===================================================================
+--- src/inet6rth.h (revision 347)
++++ src/inet6rth.h (revision 348)
+@@ -26,6 +26,10 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+
++#define inet6_rth_space working_inet6_rth_space
++#define inet6_rth_init working_inet6_rth_init
++#define inet6_rth_add working_inet6_rth_add
++
+ #ifndef IPV6_RTHDR_TYPE_0
+ # define IPV6_RTHDR_TYPE_0 0
+ #endif