summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2019-02-24 10:48:36 +0100
committerPacho Ramos <pacho@gentoo.org>2019-02-24 11:53:05 +0100
commit3bb3c08af7428ac5e9d76bd0ed0481d03fdfaed8 (patch)
treed99c03bde6b6360e28c328d6212b5679cfa91e1f /net-vpn/isatapd/files
parentapp-misc/tpconfig: Drop old (diff)
downloadgentoo-3bb3c08af7428ac5e9d76bd0ed0481d03fdfaed8.tar.gz
gentoo-3bb3c08af7428ac5e9d76bd0ed0481d03fdfaed8.tar.bz2
gentoo-3bb3c08af7428ac5e9d76bd0ed0481d03fdfaed8.zip
net-vpn/isatapd: Fix compilation with current kernels
Closes: https://bugs.gentoo.org/599756 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'net-vpn/isatapd/files')
-rw-r--r--net-vpn/isatapd/files/isatapd-linux-4.8.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-vpn/isatapd/files/isatapd-linux-4.8.patch b/net-vpn/isatapd/files/isatapd-linux-4.8.patch
new file mode 100644
index 000000000000..a95fe159d6d9
--- /dev/null
+++ b/net-vpn/isatapd/files/isatapd-linux-4.8.patch
@@ -0,0 +1,25 @@
+From: Bernhard Schmidt <berni@debian.org>
+Subject: Fix FTBFS with headers from Linux 4.8+
+Bug-Debian: https://bugs.debian.org/844869
+
+Linux 4.8+ adds a few includes to linux/if_tunnel.h, which conflict with
+concurrent use of netinet/ip.h. Drop the latter and manually define IP_DF
+which is not found anywhere else
+--- a/src/tunnel.c
++++ b/src/tunnel.c
+@@ -18,10 +18,13 @@
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+-#include <netinet/ip.h>
+ #include <net/if.h>
+ #include <linux/if_tunnel.h>
+
++#ifndef IP_DF
++ #define IP_DF 0x4000 /* dont fragment flag */
++#endif
++
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+