Code

sysdb/json: Only include YAJL headers if they're actually available.
authorSebastian Harl <sh@tokkee.org>
Sun, 11 Dec 2016 16:56:27 +0000 (17:56 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 11 Dec 2016 16:56:27 +0000 (17:56 +0100)
They're not used otherwise ;-)

src/tools/sysdb/json.c

index 1792cda..fdd4194 100644 (file)
 #include "utils/strbuf.h"
 #include "tools/sysdb/json.h"
 
-#include <yajl/yajl_parse.h>
-#include <yajl/yajl_gen.h>
+#ifdef HAVE_LIBYAJL
+#      include <yajl/yajl_parse.h>
+#      include <yajl/yajl_gen.h>
+#endif
 
 #include <unistd.h>
 #include <stdio.h>