diff --git a/srcpkgs/iptables/patches/musl.patch b/srcpkgs/iptables/patches/musl.patch new file mode 100644 index 00000000000..cb1aa3809c3 --- /dev/null +++ b/srcpkgs/iptables/patches/musl.patch @@ -0,0 +1,24 @@ +--- extensions/libxt_TCPOPTSTRIP.c.orig 2015-12-19 06:19:51.762676172 +0100 ++++ extensions/libxt_TCPOPTSTRIP.c 2015-12-19 06:20:19.081609317 +0100 +@@ -12,6 +12,21 @@ + #ifndef TCPOPT_MD5SIG + # define TCPOPT_MD5SIG 19 + #endif ++#ifndef TCPOPT_MAXSEG ++# define TCPOPT_MAXSEG 2 ++#endif ++#ifndef TCPOPT_WINDOW ++# define TCPOPT_WINDOW 3 ++#endif ++#ifndef TCPOPT_SACK_PERMITTED ++# define TCPOPT_SACK_PERMITTED 4 ++#endif ++#ifndef TCPOPT_SACK ++# define TCPOPT_SACK 5 ++#endif ++#ifndef TCPOPT_TIMESTAMP ++# define TCPOPT_TIMESTAMP 8 ++#endif + + enum { + O_STRIP_OPTION = 0,