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 1792cdac9b3f53eacb9c0b8ef238426a5e465b3b..fdd4194167d6f5ced06562933f38914b31fbcbdd 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>