util: jsoncompat: Stub out virJSONInitialize when compiling without jansson

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2018-08-01 14:29:24 +02:00
parent 397447f805
commit 9e44c2db8a

View 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 */