From 17504be81d70dd7784ff154aa301347247becd68 Mon Sep 17 00:00:00 2001 From: Roi Dayan Date: Tue, 27 Mar 2018 12:20:48 +0300 Subject: [PATCH] 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 --- tc/em_ipt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tc/em_ipt.c b/tc/em_ipt.c index 9d2b2f9b..aa2edd63 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)