aboutsummaryrefslogtreecommitdiffstats
path: root/main/icu/icu-timezone.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:11:53 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:22:25 +0000
commita433482bbea7dcceaf8cbe9ddcad1db8c9b254ff (patch)
tree9984c3cd93942f9b3fdcb4a09ecfaa68f8221fd4 /main/icu/icu-timezone.patch
parent4819e6abcde1eb62ced53602c27590d3b92ae9e0 (diff)
downloadaports-a433482bbea7dcceaf8cbe9ddcad1db8c9b254ff.tar.bz2
aports-a433482bbea7dcceaf8cbe9ddcad1db8c9b254ff.tar.xz
main/icu: fix timezone usage
the icu configure script auto-detects proper timezone variable, but it's never used, and the header #ifdef detection is horribly broken. fix it for sane libc's.
Diffstat (limited to 'main/icu/icu-timezone.patch')
-rw-r--r--main/icu/icu-timezone.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/icu/icu-timezone.patch b/main/icu/icu-timezone.patch
new file mode 100644
index 0000000000..19ee8ca0fe
--- /dev/null
+++ b/main/icu/icu-timezone.patch
@@ -0,0 +1,16 @@
+--- source/common/putilimp.h
++++ source/common/putilimp.h
+@@ -115,11 +115,8 @@
+ /* Use the predefined value. */
+ #elif U_PLATFORM == U_PF_ANDROID
+ # define U_TIMEZONE timezone
+-#elif U_PLATFORM_IS_LINUX_BASED
+-# if !defined(__UCLIBC__)
+- /* __timezone is only available in glibc */
+-# define U_TIMEZONE __timezone
+-# endif
++#elif U_PLATFORM_IS_LINUX_BASED && defined(__GLIBC__) && !defined(__UCLIBC__)
++# define U_TIMEZONE __timezone
+ #elif U_PLATFORM_USES_ONLY_WIN32_API
+ # define U_TIMEZONE _timezone
+ #elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)