]> granicus.if.org Git - icu/commitdiff
ICU-9605 Fix compiler error caused by undefined __timezone in uclibc
authorMichael Ow <mow@svn.icu-project.org>
Wed, 21 Nov 2012 19:52:44 +0000 (19:52 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Wed, 21 Nov 2012 19:52:44 +0000 (19:52 +0000)
X-SVN-Rev: 32876

icu4c/source/common/putilimp.h

index 32292426afa2e5146c9d5087e95381b597090e33..a63f223ad390e7ce7113a0622e830b11502455ae 100644 (file)
@@ -116,7 +116,10 @@ typedef size_t uintptr_t;
 #elif U_PLATFORM == U_PF_ANDROID
 #   define U_TIMEZONE timezone
 #elif U_PLATFORM_IS_LINUX_BASED
-#   define U_TIMEZONE __timezone
+#   if !defined(__UCLIBC__)
+    /* __timezone is only available in glibc */
+#       define U_TIMEZONE __timezone
+#   endif
 #elif U_PLATFORM_USES_ONLY_WIN32_API
 #   define U_TIMEZONE _timezone
 #elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)