From 861f65463708aedb20f1634c8b3214facc68348c Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 26 Aug 2014 14:40:01 -0700 Subject: glusterd: Add xml specific functions in HAVE_LIB_XML block Build failure on OSX and also on Linux with '--disable-xml-output' introduced in following commit "c080403393987f807b9ca81be140618fa5e994f1" Change-Id: I0db92c9f5e319dc1932bed9ecc1acc98adb57de3 BUG: 983317 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/8546 Tested-by: Gluster Build System Reviewed-by: Kaushal M --- xlators/mgmt/glusterd/src/glusterd-volgen.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'xlators/mgmt/glusterd') diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.h b/xlators/mgmt/glusterd/src/glusterd-volgen.h index 4eb696e5ba4..4f33081cc4f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.h +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.h @@ -197,12 +197,17 @@ _get_xlator_opt_key_from_vme ( struct volopt_map_entry *vme, char **key); void _free_xlator_opt_key (char *key); + +#if (HAVE_LIB_XML) int init_sethelp_xml_doc (xmlTextWriterPtr *writer, xmlBufferPtr *buf); int xml_add_volset_element (xmlTextWriterPtr writer, const char *name, const char *def_val, const char *dscrpt); +int +end_sethelp_xml_doc (xmlTextWriterPtr writer); +#endif /* HAVE_LIB_XML */ char* glusterd_get_trans_type_rb (gf_transport_type ttype); @@ -213,9 +218,6 @@ glusterd_check_nfs_volfile_identical (gf_boolean_t *identical); int glusterd_check_nfs_topology_identical (gf_boolean_t *identical); -int -end_sethelp_xml_doc (xmlTextWriterPtr writer); - uint32_t glusterd_get_op_version_for_key (char *key); -- cgit