diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-news/newsboat/files | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'net-news/newsboat/files')
-rw-r--r-- | net-news/newsboat/files/newsboat-2.13-json-c-0.14.0.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-news/newsboat/files/newsboat-2.13-json-c-0.14.0.patch b/net-news/newsboat/files/newsboat-2.13-json-c-0.14.0.patch new file mode 100644 index 000000000000..4e46843c6b7f --- /dev/null +++ b/net-news/newsboat/files/newsboat-2.13-json-c-0.14.0.patch @@ -0,0 +1,37 @@ +Patch merged upstream for future versions of newsboat: https://github.com/newsboat/newsboat/pull/883 + +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org> +Date: Mon, 13 Apr 2020 12:52:46 +0200 +Subject: [PATCH] Add support for upcoming json-c 0.14.0. + +TRUE/FALSE are not defined anymore. 1 and 0 are used instead. + + +--- + src/newsblurapi.cpp | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/src/newsblur_api.cpp b/src/newsblur_api.cpp +index 2d1acdae..e124852d 100644 +--- a/src/newsblur_api.cpp ++++ b/src/newsblur_api.cpp +@@ -9,6 +9,19 @@ + #include "strprintf.h" + #include "utils.h" + ++/* json-c 0.13.99 does not define TRUE/FALSE anymore ++ * the json-c maintainers replaced them with pure 1/0 ++ * https://github.com/json-c/json-c/commit/0992aac61f8b ++ */ ++#if defined JSON_C_VERSION_NUM && JSON_C_VERSION_NUM >= ((13 << 8) | 99) ++#ifndef FALSE ++#define FALSE 0 ++#endif ++#ifndef TRUE ++#define TRUE 1 ++#endif ++#endif ++ + #define NEWSBLUR_ITEMS_PER_PAGE 6 + + namespace newsboat { |