package/libsemanage: add host-audit as a dependency of the host variant
[buildroot-gz.git] / package / iptables / 0001-fix-build-with-musl.patch
blobd5e0c2ed6cb143dad9f7dec7b3e5a974b85f37ec
1 From 2f2fde48594ec34e93ab409cd83442efe58e10ad Mon Sep 17 00:00:00 2001
2 From: Brendan Heading <brendanheading@gmail.com>
3 Date: Mon, 31 Aug 2015 15:24:44 +0100
4 Subject: [PATCH 3/3] fix build with musl
6 Add needed headers they are just not needed for glibc6+ but also
7 for musl
8 Define additional TCOPTS if not there
10 u_initX types are in sys/types.h be explicit about it
12 Upstream-Status: Pending
14 bh: this is a copy of the patch at the link below, modified to remove
15 the changes to include/libiptc/ipt_kernel_headers.h as these are
16 already integrated in the upstream tree. See :
18 http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103613.html
20 Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
22 ---
23 extensions/libxt_TCPOPTSTRIP.c | 15 +++++++++++++++
24 include/linux/netfilter_ipv4/ip_tables.h | 1 +
25 2 files changed, 16 insertions(+)
27 diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c
28 index 6897857..8a170b2 100644
29 --- a/extensions/libxt_TCPOPTSTRIP.c
30 +++ b/extensions/libxt_TCPOPTSTRIP.c
31 @@ -12,6 +12,21 @@
32 #ifndef TCPOPT_MD5SIG
33 # define TCPOPT_MD5SIG 19
34 #endif
35 +#ifndef TCPOPT_MAXSEG
36 +# define TCPOPT_MAXSEG 2
37 +#endif
38 +#ifndef TCPOPT_WINDOW
39 +# define TCPOPT_WINDOW 3
40 +#endif
41 +#ifndef TCPOPT_SACK_PERMITTED
42 +# define TCPOPT_SACK_PERMITTED 4
43 +#endif
44 +#ifndef TCPOPT_SACK
45 +# define TCPOPT_SACK 5
46 +#endif
47 +#ifndef TCPOPT_TIMESTAMP
48 +# define TCPOPT_TIMESTAMP 8
49 +#endif
51 enum {
52 O_STRIP_OPTION = 0,
53 diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h
54 index 57fd82a..4807246 100644
55 --- a/include/linux/netfilter_ipv4/ip_tables.h
56 +++ b/include/linux/netfilter_ipv4/ip_tables.h
57 @@ -15,6 +15,7 @@
58 #ifndef _IPTABLES_H
59 #define _IPTABLES_H
61 +#include <sys/types.h>
62 #include <linux/types.h>
64 #include <linux/netfilter_ipv4.h>
65 --
66 2.4.3