summaryrefslogtreecommitdiffstats
path: root/main/icu/icu-timezone.patch
blob: 19ee8ca0fefe1ddeed393a1c5307b4a4a63383c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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__)