]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: jsoncompat: Stub out virJSONInitialize when compiling without jansson
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Aug 2018 12:29:24 +0000 (14:29 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Aug 2018 12:30:07 +0000 (14:30 +0200)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/util/virjsoncompat.c

index 6c853e9bb5bec1216b9919e4ef4538e42d83196d..ffbeb5488c596d2ab966235e44dfa704bc961243 100644 (file)
@@ -271,4 +271,15 @@ json_true_impl(void)
     return json_true_ptr();
 }
 
-#endif /* WITH_JANSSON */
+
+#else /* !WITH_JANSSON */
+
+
+int
+virJSONInitialize(void)
+{
+    return 0;
+}
+
+
+#endif /* !WITH_JANSSON */