From: Roi Dayan Date: Tue, 27 Mar 2018 09:20:48 +0000 (+0300) Subject: tc: Fix compilation error with old iptables X-Git-Tag: v4.17.0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17504be81d70dd7784ff154aa301347247becd68;p=thirdparty%2Fiproute2.git tc: Fix compilation error with old iptables The compat_rev field does not exists in old versions of iptables. e.g. iptables 1.4. Fixes: dd29621578d2 ("tc: add em_ipt ematch for calling xtables matches from tc matching context") Signed-off-by: Roi Dayan Signed-off-by: David Ahern --- diff --git a/tc/em_ipt.c b/tc/em_ipt.c index 9d2b2f9b4..aa2edd63c 100644 --- a/tc/em_ipt.c +++ b/tc/em_ipt.c @@ -41,7 +41,9 @@ static struct xtables_globals em_tc_ipt_globals = { .program_version = "0.1", .orig_opts = original_opts, .opts = original_opts, +#if (XTABLES_VERSION_CODE >= 11) .compat_rev = xtables_compatible_revision, +#endif }; static struct xt_entry_match *fake_xt_entry_match(int data_size, void *data)