From 56b82b5294ae0ea0e73ae3d6bb58504442773e0f Mon Sep 17 00:00:00 2001 From: "M. Mohan Kumar" Date: Mon, 18 Nov 2013 12:49:21 +0530 Subject: Fix xml compilation error Compiling GlusterFS without xml package results in following build error cli-rpc-ops.o: In function `gf_cli_status_cbk': /home/mohan/Work/glusterfs/cli/src/cli-rpc-ops.c:6430: undefined reference to `cli_xml_output_vol_status_tasks_detail' Change-Id: I49b3c46ac3340c40e372bef4690cedb41df20e8a Signed-off-by: M. Mohan Kumar Reviewed-on: http://review.gluster.org/6295 Reviewed-by: Niels de Vos Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- cli/src/cli-xml-output.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index 0cbffb222..0dc0b8ab4 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -1575,9 +1575,12 @@ out: return ret; } +#endif + int cli_xml_output_vol_status_tasks_detail (cli_local_t *local, dict_t *dict) { +#if (HAVE_LIB_XML) int ret = -1; char *volname = NULL; @@ -1603,8 +1606,10 @@ cli_xml_output_vol_status_tasks_detail (cli_local_t *local, dict_t *dict) out: return ret; -} +#else + return 0; #endif +} int cli_xml_output_vol_status (cli_local_t *local, dict_t *dict) -- cgit