1 --- a/extensions/libip6t_ipv6header.c
2 +++ b/extensions/libip6t_ipv6header.c
3 @@ -10,6 +10,9 @@ on whether they contain certain headers
6 #include <linux/netfilter_ipv6/ip6t_ipv6header.h>
7 +#ifndef IPPROTO_HOPOPTS
8 +# define IPPROTO_HOPOPTS 0
13 --- a/extensions/libxt_TCPOPTSTRIP.c
14 +++ b/extensions/libxt_TCPOPTSTRIP.c
17 # define TCPOPT_MD5SIG 19
19 +#ifndef TCPOPT_MAXSEG
20 +# define TCPOPT_MAXSEG 2
22 +#ifndef TCPOPT_WINDOW
23 +# define TCPOPT_WINDOW 3
25 +#ifndef TCPOPT_SACK_PERMITTED
26 +# define TCPOPT_SACK_PERMITTED 4
29 +# define TCPOPT_SACK 5
31 +#ifndef TCPOPT_TIMESTAMP
32 +# define TCPOPT_TIMESTAMP 8
37 --- a/include/libiptc/ipt_kernel_headers.h
38 +++ b/include/libiptc/ipt_kernel_headers.h
43 -#if defined(__GLIBC__) && __GLIBC__ == 2
44 #include <netinet/ip.h>
45 #include <netinet/in.h>
46 #include <netinet/ip_icmp.h>
48 #include <netinet/udp.h>
50 #include <sys/types.h>
52 -#include <sys/socket.h>
53 -#include <linux/ip.h>
54 -#include <linux/in.h>
55 -#include <linux/if.h>
56 -#include <linux/icmp.h>
57 -#include <linux/tcp.h>
58 -#include <linux/udp.h>
59 -#include <linux/types.h>
60 -#include <linux/in6.h>
63 --- a/include/linux/netfilter_ipv4/ip_tables.h
64 +++ b/include/linux/netfilter_ipv4/ip_tables.h
68 #include <linux/types.h>
69 +#include <sys/types.h>
71 #include <linux/netfilter_ipv4.h>
73 --- a/iptables/ip6tables-restore.c
74 +++ b/iptables/ip6tables-restore.c
79 -#include <sys/errno.h>
84 --- a/iptables/ip6tables-save.c
85 +++ b/iptables/ip6tables-save.c
87 * This code is distributed under the terms of GNU GPL v2
90 -#include <sys/errno.h>
95 --- a/iptables/iptables-restore.c
96 +++ b/iptables/iptables-restore.c
101 -#include <sys/errno.h>
106 --- a/iptables/iptables-save.c
107 +++ b/iptables/iptables-save.c
112 -#include <sys/errno.h>
117 --- a/iptables/iptables-xml.c
118 +++ b/iptables/iptables-xml.c
123 -#include <sys/errno.h>