summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch')
-rw-r--r--meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch b/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch
deleted file mode 100644
index f1f85a6fa0..0000000000
--- a/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1[PATCH] fix build with musl
2
3Define additional TCOPTS if not there
4u_initX types are in sys/types.h be explicit about it
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Signed-off-by: Maxin B. John <maxin.john@intel.com>
10---
11diff -Naur iptables-1.6.0-origin/extensions/libxt_TCPOPTSTRIP.c iptables-1.6.0/extensions/libxt_TCPOPTSTRIP.c
12--- iptables-1.6.0-origin/extensions/libxt_TCPOPTSTRIP.c 2015-12-09 14:55:06.000000000 +0200
13+++ iptables-1.6.0/extensions/libxt_TCPOPTSTRIP.c 2015-12-29 14:44:32.585327077 +0200
14@@ -12,6 +12,21 @@
15 #ifndef TCPOPT_MD5SIG
16 # define TCPOPT_MD5SIG 19
17 #endif
18+#ifndef TCPOPT_MAXSEG
19+#define TCPOPT_MAXSEG 2
20+#endif
21+#ifndef TCPOPT_WINDOW
22+#define TCPOPT_WINDOW 3
23+#endif
24+#ifndef TCPOPT_SACK_PERMITTED
25+#define TCPOPT_SACK_PERMITTED 4
26+#endif
27+#ifndef TCPOPT_SACK
28+#define TCPOPT_SACK 5
29+#endif
30+#ifndef TCPOPT_TIMESTAMP
31+#define TCPOPT_TIMESTAMP 8
32+#endif
33
34 enum {
35 O_STRIP_OPTION = 0,
36diff -Naur iptables-1.6.0-origin/include/linux/netfilter_ipv4/ip_tables.h iptables-1.6.0/include/linux/netfilter_ipv4/ip_tables.h
37--- iptables-1.6.0-origin/include/linux/netfilter_ipv4/ip_tables.h 2015-12-09 14:55:06.000000000 +0200
38+++ iptables-1.6.0/include/linux/netfilter_ipv4/ip_tables.h 2015-12-29 14:40:21.250469195 +0200
39@@ -15,6 +15,7 @@
40 #ifndef _IPTABLES_H
41 #define _IPTABLES_H
42
43+#include <sys/types.h>
44 #include <linux/types.h>
45
46 #include <linux/netfilter_ipv4.h>