]> granicus.if.org Git - icu/commitdiff
ICU-9286 Fix for variations in the presence of the timezone symbol on BSDs
authorWill Mason <willchido@gmail.com>
Thu, 26 Apr 2012 21:45:02 +0000 (21:45 +0000)
committerWill Mason <willchido@gmail.com>
Thu, 26 Apr 2012 21:45:02 +0000 (21:45 +0000)
X-SVN-Rev: 31780

icu4c/source/common/putilimp.h
icu4c/source/common/unicode/platform.h

index cbec89bf590298b55238297be7d2cff8e23f9e53..3f097d3b8626249c204bd9a3ad8952df70a1225c 100644 (file)
@@ -116,6 +116,8 @@ typedef size_t uintptr_t;
 #   define U_TIMEZONE __timezone
 #elif U_PLATFORM_USES_ONLY_WIN32_API
 #   define U_TIMEZONE _timezone
+#elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)
+   /* not defined */
 #elif U_PLATFORM == U_PF_OS400
    /* not defined */
 #else
index dccc7018e0dee7c56471710b754ce13bc1e3c2fd..915e05238f7926983bfda90ed6ca595492251c21 100644 (file)
 #   include <android/api-level.h>
 #elif defined(linux) || defined(__linux__) || defined(__linux)
 #   define U_PLATFORM U_PF_LINUX
-#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__)
 #   define U_PLATFORM U_PF_BSD
 #elif defined(sun) || defined(__sun)
     /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */