]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix a compilation failure if yajl not avail
authorDaniel Veillard <veillard@redhat.com>
Tue, 8 Dec 2009 10:08:17 +0000 (11:08 +0100)
committerDaniel Veillard <veillard@redhat.com>
Tue, 8 Dec 2009 10:08:17 +0000 (11:08 +0100)
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

src/util/json.c

index 93b81869ecaf7ab92ed5e10644ea41ce4b20eca4..35f6e52e40e4fd9c3ca4f2ebebbafa23dbed3970 100644 (file)
 #include "logging.h"
 #include "util.h"
 
+#if HAVE_YAJL
 #include <yajl/yajl_gen.h>
 #include <yajl/yajl_parse.h>
+#endif
 
 /* XXX fixme */
 #define VIR_FROM_THIS VIR_FROM_NONE