From: Florian Westphal Date: Wed, 24 Oct 2018 10:00:11 +0000 (+0200) Subject: extensions: limit: unbreak build without libnftnl X-Git-Tag: v1.8.2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2fc2a368562d55fadad94d995247bb8cd7e68a3;p=thirdparty%2Fiptables.git extensions: limit: unbreak build without libnftnl 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 Fixes: 02b80972c43 ("ebtables: Merge libebt_limit.c into libxt_limit.c") Signed-off-by: Florian Westphal --- diff --git a/extensions/libxt_limit.c b/extensions/libxt_limit.c index c7b66295..1b324657 100644 --- a/extensions/libxt_limit.c +++ b/extensions/libxt_limit.c @@ -15,7 +15,6 @@ #include #include #include -#include "iptables/nft.h" #include "iptables/nft-bridge.h" #define XT_LIMIT_AVG "3/hour" diff --git a/iptables/nft-bridge.h b/iptables/nft-bridge.h index 9d49ccbe..de52cd71 100644 --- a/iptables/nft-bridge.h +++ b/iptables/nft-bridge.h @@ -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",