From: Daniel Veillard Date: Tue, 8 Dec 2009 10:08:17 +0000 (+0100) Subject: Fix a compilation failure if yajl not avail X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a4e09c1ed81f7361ff03d95ad42eac49d4d60812;p=libvirt.git Fix a compilation failure if yajl not avail configure: yajl: no CC libvirt_util_la-json.lo util/json.c:32:27: error: yajl/yajl_gen.h: No such file or directory util/json.c:33:29: error: yajl/yajl_parse.h: No such file or directory * src/util/json.c: remove the includes if yajl not configured in --- diff --git a/src/util/json.c b/src/util/json.c index 93b81869ec..35f6e52e40 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -29,8 +29,10 @@ #include "logging.h" #include "util.h" +#if HAVE_YAJL #include #include +#endif /* XXX fixme */ #define VIR_FROM_THIS VIR_FROM_NONE