diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2013-11-18 12:49:21 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-11-19 09:59:28 -0800 |
commit | 56b82b5294ae0ea0e73ae3d6bb58504442773e0f (patch) | |
tree | 714be7d9b8ca1902296e5af8dfe23600d5ed5782 /cli/src/cli-xml-output.c | |
parent | 56d0124224259ccfc4c8b1cc33939902ed480d23 (diff) |
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 <mohan@in.ibm.com>
Reviewed-on: http://review.gluster.org/6295
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'cli/src/cli-xml-output.c')
-rw-r--r-- | cli/src/cli-xml-output.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index 0cbffb22233..0dc0b8ab42a 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) |