path: root/src/expr_ops.h
diff options
authorPablo Neira Ayuso <>2013-07-04 16:51:57 +0200
committerPablo Neira Ayuso <>2013-07-04 16:51:57 +0200
commit1085a4e18d297d8338cf9babe7e623e25a00f499 (patch)
tree9431fe8c80b7f93013dc9f3b2a5428411e53d76a /src/expr_ops.h
parent556fb7ee694a0f18cbd3d73ac96b27c74081bd6d (diff)
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 <>
Diffstat (limited to 'src/expr_ops.h')
1 files changed, 4 insertions, 0 deletions
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
struct expr_ops {
char *name;
size_t alloc_len;