blob: f11071d3efff988d8dde3f6f5d0e390aced221cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Fix build with JSON support enabled
--- a/configure.ac
+++ b/configure.ac
@@ -62,7 +62,7 @@ Please install libjson to continue.
----------------------------------------])
fi
- AC_CHECK_HEADER([json/json.h],,[AC_MSG_ERROR([
+ AC_CHECK_HEADER([json-c/json.h],,[AC_MSG_ERROR([
----------------------------------------
Macaroons rely upon the libjson library.
Please install libjson to continue.
diff --git a/macaroons.c b/macaroons.c
index ab296c8..654edfc 100644
--- a/macaroons.c
+++ b/macaroons.c
@@ -32,12 +32,17 @@
/* C */
#include <assert.h>
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#define TRUE true
+#define FALSE false
+
/* json */
#ifdef MACAROONS_JSON_SUPPORT
-#include <json/json.h>
+#include <json-c/json.h>
+#include <json-c/json_object.h>
#endif
/* macaroons */
--
|