summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-02-24 14:19:23 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-02-24 14:19:23 +0000
commit319067f7a91e2c7813aa579597535bfbf10770cc (patch)
tree5f0b44181c1f92e86228e08b160499735c4a71b0
parent0dd3a5c09b84d868a980401b63c19740125857d9 (diff)
dev-libs/icu-layoutex : fix compiling agains glibc 226
-rw-r--r--dev-libs/icu-layoutex/files/icu-58.2-glibc226.patch16
-rw-r--r--dev-libs/icu-layoutex/icu-layoutex-58.2-r1.ebuild (renamed from dev-libs/icu-layoutex/icu-layoutex-58.2.ebuild)1
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-libs/icu-layoutex/files/icu-58.2-glibc226.patch b/dev-libs/icu-layoutex/files/icu-58.2-glibc226.patch
new file mode 100644
index 00000000..7003173a
--- /dev/null
+++ b/dev-libs/icu-layoutex/files/icu-58.2-glibc226.patch
@@ -0,0 +1,16 @@
+diff -ruN a/i18n/digitlst.cpp b/i18n/digitlst.cpp
+--- a/i18n/digitlst.cpp 2016-10-27 01:37:56.000000000 -0000
++++ b/i18n/digitlst.cpp 2017-09-21 20:39:29.873030393 -0000
+@@ -61,11 +61,7 @@
+ #endif
+
+ #if U_USE_STRTOD_L
+-# if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN
+-# include <locale.h>
+-# else
+-# include <xlocale.h>
+-# endif
++# include <locale.h>
+ #endif
+
+ // ***************************************************************************
diff --git a/dev-libs/icu-layoutex/icu-layoutex-58.2.ebuild b/dev-libs/icu-layoutex/icu-layoutex-58.2-r1.ebuild
index 92aedc3c..b393329f 100644
--- a/dev-libs/icu-layoutex/icu-layoutex-58.2.ebuild
+++ b/dev-libs/icu-layoutex/icu-layoutex-58.2-r1.ebuild
@@ -30,6 +30,7 @@ S="${WORKDIR}/${PN/-layoutex}/source"
PATCHES=(
"${FILESDIR}/${PN}-58.1-remove-bashisms.patch"
+ "${FILESDIR}/icu-${PV}-glibc226.patch"
)
src_prepare() {