]> git.ipfire.org Git - thirdparty/nftables.git/commit
xt: fix build when libxtables is not installed
authorFlorian Westphal <fw@strlen.de>
Thu, 29 Nov 2018 13:57:59 +0000 (14:57 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 4 Dec 2018 00:39:36 +0000 (01:39 +0100)
commit9e84f3f083bb33f4de974fd87a5d06fb9609be12
tree52c7b6d8a19144ee4aa603ab47cfa597ca51dcd6
parent1018eae77176cffd39bad0e499010923642c2cba
xt: fix build when libxtables is not installed

If libxtables is not even installed, build fails due to to missing
include file.

ifdef LIBXTABLES guard fixes the first error, but results in two
followup failures:
1. missing IFNAMSIZ definition
2. dereference of unknown struct.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/xt.c