0001-modules-json-Adaptions-for-json-c-v0.13.patch 972 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 1b824dd6389e209eab752d5a698c6093f311e3e3 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
  3. Date: Mon, 11 Dec 2017 15:46:06 +0100
  4. Subject: [PATCH] modules/json: Adaptions for json-c v0.13
  5. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  6. ---
  7. Patch status: upstream commit 1b824dd6389e
  8. modules/json/json-parser.c | 5 +++++
  9. 1 file changed, 5 insertions(+)
  10. diff --git a/modules/json/json-parser.c b/modules/json/json-parser.c
  11. index 0368ed8f7ffe..356df48b9fc7 100644
  12. --- a/modules/json/json-parser.c
  13. +++ b/modules/json/json-parser.c
  14. @@ -20,6 +20,8 @@
  15. * COPYING for details.
  16. */
  17. +#define JSON_C_VER_013 (13 << 8)
  18. +
  19. #include "json-parser.h"
  20. #include "dot-notation.h"
  21. #include "scratch-buffers.h"
  22. @@ -28,7 +30,10 @@
  23. #include <ctype.h>
  24. #include <json.h>
  25. +
  26. +#if (!defined(JSON_C_VERSION_NUM)) || (JSON_C_VERSION_NUM < JSON_C_VER_013)
  27. #include <json_object_private.h>
  28. +#endif
  29. typedef struct _JSONParser
  30. {
  31. --
  32. 2.15.1