aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2014-11-15 02:52:32 +0800
committernox <nox@FreeBSD.org>2014-11-15 02:52:32 +0800
commit1dfad7d991451c9fb4fe539e32f3a50ae5956851 (patch)
tree5ad28bed1c6f17a85527bb66b8568f9cbba47486 /emulators
parent6f56fa7d111bb37383845a9d09c329d178143c4b (diff)
downloadfreebsd-ports-gnome-1dfad7d991451c9fb4fe539e32f3a50ae5956851.tar.gz
freebsd-ports-gnome-1dfad7d991451c9fb4fe539e32f3a50ae5956851.tar.zst
freebsd-ports-gnome-1dfad7d991451c9fb4fe539e32f3a50ae5956851.zip
(Attempt to) fix build on head after faith(4) removal. (r274331)
Submitted by: beefy1 via pkg-fallout
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu-devel/files/extra-patch-bsd-user-freebsd-os-socket.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/extra-patch-bsd-user-freebsd-os-socket.h b/emulators/qemu-devel/files/extra-patch-bsd-user-freebsd-os-socket.h
new file mode 100644
index 000000000000..a1f133712815
--- /dev/null
+++ b/emulators/qemu-devel/files/extra-patch-bsd-user-freebsd-os-socket.h
@@ -0,0 +1,22 @@
+--- a/bsd-user/freebsd/os-socket.h
++++ b/bsd-user/freebsd/os-socket.h
+@@ -181,7 +181,9 @@ static inline abi_long do_bsd_setsockopt
+ case IP_PORTRANGE: /* int; range to choose for unspec port */
+ case IP_RECVIF: /* bool; receive reception if w/dgram */
+ case IP_IPSEC_POLICY: /* int; set/get security policy */
++#ifdef IP_FAITH
+ case IP_FAITH: /* bool; accept FAITH'ed connections */
++#endif
+ case IP_RECVTTL: /* bool; receive reception TTL w/dgram */
+ val = 0;
+ if (optlen >= sizeof(uint32_t)) {
+@@ -454,7 +456,9 @@ int_case:
+ case IP_MULTICAST_LOOP:
+ case IP_PORTRANGE:
+ case IP_IPSEC_POLICY:
++#ifdef IP_FAITH
+ case IP_FAITH:
++#endif
+ case IP_ONESBCAST:
+ case IP_BINDANY:
+ if (get_user_u32(len, optlen)) {