summarylogtreecommitdiffstats
path: root/json-c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'json-c.patch')
-rw-r--r--json-c.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/json-c.patch b/json-c.patch
new file mode 100644
index 000000000000..e918251f6d83
--- /dev/null
+++ b/json-c.patch
@@ -0,0 +1,22 @@
+--- a/manipulators/mwebymsg/analyse.c 2019-05-26 18:38:15.722151286 +0200
++++ b/ manipulators/mwebymsg/analyse.c 2019-05-26 18:38:37.785856970 +0200
+@@ -24,6 +24,8 @@
+ */
+
+ #define _GNU_SOURCE
++#define JSON_C_VER_013 (13 << 8)
++
+ #include <string.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+@@ -32,8 +34,9 @@
+ #include <signal.h>
+ #include <unistd.h>
+ #include <json-c/json.h>
++#if (!defined(JSON_C_VERSION_NUM)) || (JSON_C_VERSION_NUM < JSON_C_VER_013)
+ #include <json-c/json_object_private.h>
+-
++#endif
+ #include "log.h"
+ #include "analyse.h"
+ #include "proto.h"