From 1085a4e18d297d8338cf9babe7e623e25a00f499 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 4 Jul 2013 16:51:57 +0200 Subject: src: xml: fix compilation without XML parsing enabled Since (d844fa0 src: consolidate XML parsing of expressions via nft_mxml_expr_parse), the library was not compiling with XML support anymore. Signed-off-by: Pablo Neira Ayuso --- src/expr_ops.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/expr_ops.h') diff --git a/src/expr_ops.h b/src/expr_ops.h index 8dc4a09..18edfd1 100644 --- a/src/expr_ops.h +++ b/src/expr_ops.h @@ -9,6 +9,10 @@ struct nlattr; struct nlmsghdr; struct nft_rule_expr; +#ifndef XML_PARSING +#define mxml_node_t void +#endif + struct expr_ops { char *name; size_t alloc_len; -- cgit v1.2.3