]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix compile error in libxt_iprange.c using gcc 4.3.2
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 23 Oct 2008 13:40:52 +0000 (15:40 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 23 Oct 2008 13:40:52 +0000 (15:40 +0200)
In file included from libxt_iprange.c:9:
../include/linux/netfilter.h:43: error: field 'in' has incomplete type
../include/linux/netfilter.h:44: error: field 'in6' has incomplete type
libxt_iprange.c: In function 'parse_iprange':
libxt_iprange.c:46: error: dereferencing pointer to incomplete type
libxt_iprange.c:53: error: dereferencing pointer to incomplete type
libxt_iprange.c: In function 'iprange_mt4_parse':
libxt_iprange.c:117: error: dereferencing pointer to incomplete type
libxt_iprange.c:121: error: dereferencing pointer to incomplete type
libxt_iprange.c:136: error: dereferencing pointer to incomplete type
libxt_iprange.c:140: error: dereferencing pointer to incomplete type
libxt_iprange.c: In function 'iprange_mt6_parse':
libxt_iprange.c:167: error: dereferencing pointer to incomplete type
libxt_iprange.c:171: error: dereferencing pointer to incomplete type
libxt_iprange.c:186: error: dereferencing pointer to incomplete type
libxt_iprange.c:190: error: dereferencing pointer to incomplete type

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
extensions/libxt_iprange.c

index 503372fe00c05294b272fca116b9ffd0318bc7b1..ee87a6fc5334958d5a39fc62ce1460283dc5096d 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <getopt.h>
 
+#include <netinet/in.h>
 #include <xtables.h>
 #include <linux/netfilter.h>
 #include <linux/netfilter/xt_iprange.h>