1 --- a/extensions/libip6t_ipv6header.c
2 +++ b/extensions/libip6t_ipv6header.c
3 @@ -15,6 +15,9 @@ on whether they contain certain headers
6 #include <linux/netfilter_ipv6/ip6t_ipv6header.h>
7 +#ifndef IPPROTO_HOPOPTS
8 +# define IPPROTO_HOPOPTS 0
11 /* This maybe required
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/xt_osf.h
64 +++ b/include/linux/netfilter/xt_osf.h
68 #include <linux/types.h>
69 +#if !defined(__UCLIBC__) && !defined(__GLIBC__)
70 +#include <linux/tcp.h>
73 #define MAXGENRELEN 32
75 --- a/include/linux/netfilter_ipv4/ip_tables.h
76 +++ b/include/linux/netfilter_ipv4/ip_tables.h
80 #include <linux/types.h>
81 +#include <sys/types.h>
83 #include <linux/netfilter_ipv4.h>
85 --- a/ip6tables-restore.c
86 +++ b/ip6tables-restore.c
91 -#include <sys/errno.h>
96 --- a/ip6tables-save.c
97 +++ b/ip6tables-save.c
99 * This code is distributed under the terms of GNU GPL v2
102 -#include <sys/errno.h>
107 --- a/iptables-restore.c
108 +++ b/iptables-restore.c
113 -#include <sys/errno.h>
118 --- a/iptables-save.c
119 +++ b/iptables-save.c
124 -#include <sys/errno.h>
135 -#include <sys/errno.h>