]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_TOS: fix compilation error
authorJirí Moravec <jim.lkml@gmail.com>
Wed, 22 Oct 2008 06:57:38 +0000 (08:57 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 22 Oct 2008 06:57:38 +0000 (08:57 +0200)
Fix compilation error caused by double definition of IPPROTO_SCTP:

In file included from /usr/include/netinet/ip.h:25,
                 from /usr/include/linux/ip.h:19,
                 from tos_values.c:4,
                 from libxt_TOS.c:15:
/usr/include/netinet/in.h:84: error: expected identifier before numeric constant
make[2]: *** [libxt_TOS.oo] Error 1

Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_TOS.c

index 9ce8473f4eb4940667cba316563c66e9f0084f26..55a7172967acdb1593b4036e3c7c5fb6a73523ce 100644 (file)
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <netinet/in.h>
 
 #include <xtables.h>
 #include <linux/netfilter/xt_DSCP.h>