Fixes build problems on Ubuntu 12.04 with latest version of json-c.
Signed-off-by: Mark Baugher <[email protected]>
---
blobmsg_json.h | 2 ++
jshn.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/blobmsg_json.h b/blobmsg_json.h
index e8036eb..8f9bdf1 100644
--- a/blobmsg_json.h
+++ b/blobmsg_json.h
@@ -18,8 +18,10 @@
#ifdef JSONC
#include <json.h>
+ #include <bits.h>
#else
#include <json/json.h>
+ #include <json/bits.h>
#endif
#include <stdbool.h>
diff --git a/jshn.c b/jshn.c
index f71e6e6..3719174 100644
--- a/jshn.c
+++ b/jshn.c
@@ -15,8 +15,10 @@
*/
#ifdef JSONC
#include <json.h>
+ #include <bits.h>
#else
#include <json/json.h>
+ #include <json/bits.h>
#endif
#include <string.h>
--
1.7.9.5
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel