summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDuncan Roe <duncan_roe@optusnet.com.au>2018-08-18 12:00:59 +1000
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-20 11:03:25 +0200
commit6c8d1ded5e0f3e2d775eaf342cb501740e50e564 (patch)
treef09fcdbce267e0a9a3af1c5009d5f4ee97c133de /src
parent4b8f5e70d00b2686ef70e48cfa3d4306bee02756 (diff)
rule: Fix build failure in rule.c
Commit c8a0e8c90 added #include <linux/netfilter_bridge.h> but that header needs the definition of IFNAMSIZ from <net/if.h> Sample build failure: CC evaluate.lo In file included from ../include/linux/netfilter_bridge.h:10:0, from rule.c:32: /usr/include/linux/if_pppox.h:42:20: error: 'IFNAMSIZ' undeclared here (not in a function) char dev[IFNAMSIZ]; /* Local device to use */ ^ Makefile:687: recipe for target 'rule.lo' failed Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/rule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rule.c b/src/rule.c
index d11b1d29..570d6671 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -29,6 +29,7 @@
#include <linux/netfilter.h>
#include <linux/netfilter_arp.h>
#include <linux/netfilter_ipv4.h>
+#include <net/if.h>
#include <linux/netfilter_bridge.h>
void handle_free(struct handle *h)