]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: limit: unbreak build without libnftnl
authorFlorian Westphal <fw@strlen.de>
Wed, 24 Oct 2018 10:00:11 +0000 (12:00 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 24 Oct 2018 13:13:33 +0000 (15:13 +0200)
Lars Wendler reported 1.8.1 build failure when trying to build without nft backend:

  In file included from ../iptables/nft.h:5, from libxt_limit.c:18: libnftnl/rule.h: No such file or directory

Reported-by: Lars Wendler <polynomial-c@gentoo.org>
Fixes: 02b80972c43 ("ebtables: Merge libebt_limit.c into libxt_limit.c")
Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libxt_limit.c
iptables/nft-bridge.h

index c7b66295c09d2d2f16dd3cc84992d2e46798c6b1..1b3246575f2293917f35e326cbd07c94a7783cfd 100644 (file)
@@ -15,7 +15,6 @@
 #include <xtables.h>
 #include <linux/netfilter/x_tables.h>
 #include <linux/netfilter/xt_limit.h>
-#include "iptables/nft.h"
 #include "iptables/nft-bridge.h"
 
 #define XT_LIMIT_AVG   "3/hour"
index 9d49ccbef0961d8104274bf2990f3ba9adb2fee3..de52cd7195bbb06cf436f1814229b2e70823e716 100644 (file)
@@ -68,6 +68,7 @@ int ebt_get_mac_and_mask(const char *from, unsigned char *to, unsigned char *mas
 #define EBT_VERDICT_BITS 0x0000000F
 
 struct nftnl_rule;
+struct iptables_command_state;
 
 static const char *ebt_standard_targets[NUM_STANDARD_TARGETS] = {
        "ACCEPT",