blob: 3dd85a7bb1c41444802a32b0afb19e6a0e06080e [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001json-c-0.12 unlike 0.11 doesn't install json -> json-c symlink in include
2
3* Resolved in Version 7.6.4 [v7.6-stable] 2014-09-12
4 https://github.com/rsyslog/rsyslog/blob/v7-stable/ChangeLog
5* permits to build against json-c 0.12
6 Unfortunately, json-c had an ABI breakage, so this is necessary. Note
7 that versions prior to 0.12 had security issues (CVE-2013-6370,
8 CVE-2013-6371) and so it is desirable to link against the new version.
9 Thanks to Thomas D. for the patch. Note that at least some distros
10 have fixed the security issue in older versions of json-c, so this
11 seems to apply mostly when building from sources.
12
13Upstream-Status: Backport
14Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
15
16diff --git a/plugins/ommongodb/ommongodb.c b/plugins/ommongodb/ommongodb.c
17index 41c0d76..682c40e 100644
18--- a/plugins/ommongodb/ommongodb.c
19+++ b/plugins/ommongodb/ommongodb.c
20@@ -33,9 +33,9 @@
21 #include <stdint.h>
22 #include <time.h>
23 #include <mongo.h>
24-#include <json.h>
25+#include <json-c/json.h>
26 /* For struct json_object_iter, should not be necessary in future versions */
27-#include <json_object_private.h>
28+#include <json-c/json_object_private.h>
29
30 #include "rsyslog.h"
31 #include "conf.h"
32diff --git a/runtime/msg.c b/runtime/msg.c
33index d04ce7b..b367e1f 100644
34--- a/runtime/msg.c
35+++ b/runtime/msg.c
36@@ -41,9 +41,9 @@
37 #endif
38 #include <netdb.h>
39 #include <libestr.h>
40-#include <json.h>
41+#include <json-c/json.h>
42 /* For struct json_object_iter, should not be necessary in future versions */
43-#include <json_object_private.h>
44+#include <json-c/json_object_private.h>
45 #if HAVE_MALLOC_H
46 # include <malloc.h>
47 #endif