Skip to contentSkip to conversation

build: fix build error

PATCH Applied Arturo Borrero Gonzalez 2 participants 2 messages Sep 16, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: fix build error

This declaration was missing and is needed in case you compile libnftables without XML parsing support.

---
 src/expr/data_reg.h |    4 ++++
 1 file changed, 4 insertions(+)
src/expr/data_reg.h +4 -0
index f41a483..98c3a4c 100644
@@ -23,6 +23,10 @@ union nft_data_reg {
 #define json_t void
 #endif
 
+#ifndef XML_PARSING
+#define mxml_node_t void
+#endif
+
 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);
maintainer Applied
#1 lore raw
Quoted 2 lines · Arturo Borrero Gonzalez

This declaration was missing and is needed in case you compile libnftables without XML parsing support.

Applied, thanks.