]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libipq: fix compile error
authorJan Engelhardt <jengelh@medozas.de>
Thu, 12 Feb 2009 14:07:15 +0000 (15:07 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 12 Feb 2009 14:13:18 +0000 (15:13 +0100)
libipq.c: In function `ipq_create_handle':
libipq.c:220: error: `NFPROTO_IPV4' undeclared (first use in this function)
libipq.c:220: error: (Each undeclared identifier is reported only once
libipq.c:220: error: for each function it appears in.)
libipq.c:222: error: `NFPROTO_IPV6' undeclared (first use in this function)

Add the required includes.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
libipq/libipq.c

index 495fce1645cb0db78ae6be77bb5e164627f10517..620cc2d311cee441c6f582458df70631addfb610 100644 (file)
@@ -32,6 +32,8 @@
 #include <sys/types.h>
 
 #include <libipq/libipq.h>
+#include <netinet/in.h>
+#include <linux/netfilter.h>
 
 /****************************************************************************
  *