diff options
author | Breno Leitao <breno.leitao@gmail.com> | 2017-03-24 21:57:42 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-03-24 23:28:59 +0000 |
commit | eb4f085009a73d1f2bd65abe5a8c86894155be23 (patch) | |
tree | 17b4c3a4eba29ca9172bd3efbf903aea76bcec29 /main/newsbeuter/musl_const.patch | |
parent | 39c3352044035e9c7bd0e30cff3d71f070d3edf6 (diff) | |
download | aports-eb4f085009a73d1f2bd65abe5a8c86894155be23.tar.bz2 aports-eb4f085009a73d1f2bd65abe5a8c86894155be23.tar.xz |
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.
Diffstat (limited to 'main/newsbeuter/musl_const.patch')
-rw-r--r-- | main/newsbeuter/musl_const.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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; |