diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2014-08-26 14:40:01 -0700 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2014-08-26 23:24:10 -0700 |
commit | 861f65463708aedb20f1634c8b3214facc68348c (patch) | |
tree | d02c98fbccbd334c62fd952e9317cd262c7d1ec2 | |
parent | 74cf4e1920db1edae6728cfe632e4ca7aea5be59 (diff) |
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 <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/8546
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.h | 8 |
1 files changed, 5 insertions, 3 deletions
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); |