From eb4f085009a73d1f2bd65abe5a8c86894155be23 Mon Sep 17 00:00:00 2001 From: Breno Leitao Date: Fri, 24 Mar 2017 21:57:42 +0000 Subject: main/newsbeuter: Compile without glibc If you try to compile newsbeuter without -fpermissive, as ppc64le, it will not build due to a wrong argument type. It is wrong because it sets the propoer argument if you have Linux with Glibc. Since we use MUSL, it use the wrong argument. This patch assure that both musl and glibc uses the same argument type. --- main/newsbeuter/musl_const.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 main/newsbeuter/musl_const.patch (limited to 'main/newsbeuter/musl_const.patch') diff --git a/main/newsbeuter/musl_const.patch b/main/newsbeuter/musl_const.patch new file mode 100644 index 0000000000..607fbf5494 --- /dev/null +++ b/main/newsbeuter/musl_const.patch @@ -0,0 +1,11 @@ +--- a/src/utils.cpp ++++ b/src/utils.cpp +@@ -274,7 +274,7 @@ + * of all the Unix-like systems around there, only Linux/glibc seems to + * come with a SuSv3-conforming iconv implementation. + */ +-#if !(__linux) && !defined(__GLIBC__) && !defined(__APPLE__) && !defined(__OpenBSD__) ++#if (__linux) + const char * inbufp; + #else + char * inbufp; -- cgit v1.2.3