summaryrefslogtreecommitdiffstats
path: root/lib/json.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-06-05 01:55:22 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-10 15:17:37 +0200
commit112072ac877944c86c0a86ae9e575eda034e39c1 (patch)
tree5b6a89bcc20b705ad48bba24ddca5b2e0fcebe4a /lib/json.h
parentconfigure: Ensure systemd development is present (diff)
downloadfrr-112072ac877944c86c0a86ae9e575eda034e39c1.tar.xz
frr-112072ac877944c86c0a86ae9e575eda034e39c1.zip
configure: Auto pick-up the correct json env
Fix the code to allow Quagga to automatically compile with the correct json library. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/json.h')
-rw-r--r--lib/json.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/json.h b/lib/json.h
index e69b10acd..561f7cc40 100644
--- a/lib/json.h
+++ b/lib/json.h
@@ -22,7 +22,11 @@
#ifndef _QUAGGA_JSON_H
#define _QUAGGA_JSON_H
+#if defined(HAVE_JSON_C_JSON_H)
+#include <json-c/json.h>
+#else
#include <json/json.h>
+#endif
extern int use_json(const int argc, const char *argv[]);
extern void json_object_string_add(struct json_object* obj, const char *key,