[PATCH v2] nft: Fix build failure in rule.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 src/rule.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/rule.c b/src/rule.c
index d11b1d2..570d667 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)
-- 
2.9.0




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux