summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-xml-output.c7
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)