path: root/src
diff options
authorArturo Borrero Gonzalez <>2013-09-16 20:20:34 +0200
committerPablo Neira Ayuso <>2013-09-16 22:43:02 +0200
commit86ef92a88776bcb8a6d3a403ee2bb0ea2e3eb937 (patch)
tree8e4e05eb64e9a8f489a271a2b6809f88aed9d116 /src
parent210adc4063a7557b3bc0ffd69bd992c0bec4bacc (diff)
build: fix build error
This declaration was missing and is needed in case you compile libnftables without XML parsing support. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expr/data_reg.h b/src/expr/data_reg.h
index f41a483..98c3a4c 100644
--- a/src/expr/data_reg.h
+++ b/src/expr/data_reg.h
@@ -23,6 +23,10 @@ union nft_data_reg {
#define json_t void
+#ifndef XML_PARSING
+#define mxml_node_t void
int nft_data_reg_snprintf(char *buf, size_t size, union nft_data_reg *reg,
uint32_t output_format, uint32_t flags, int reg_type);
int nft_data_reg_xml_parse(union nft_data_reg *reg, mxml_node_t *tree);