From f376d24e79e85cf72b6f8536d3c898526d70f915 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 15 Aug 2012 15:51:46 +0100 Subject: [PATCH] Fix virJSONValueToString prototype for Mingw32 Fix build on platforms lacking YAJL library by adding missing 'bool pretty' parameter to virJSONValueToString. --- src/util/json.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/json.c b/src/util/json.c index 30184acfd0..0507244f7e 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -1112,7 +1112,8 @@ virJSONValuePtr virJSONValueFromString(const char *jsonstring ATTRIBUTE_UNUSED) _("No JSON parser implementation is available")); return NULL; } -char *virJSONValueToString(virJSONValuePtr object ATTRIBUTE_UNUSED) +char *virJSONValueToString(virJSONValuePtr object ATTRIBUTE_UNUSED, + bool pretty ATTRIBUTE_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("No JSON parser implementation is available"));