]> granicus.if.org Git - icu/commitdiff
ICU-9197 Fix BSD platform detection
authorMichael Ow <mow@svn.icu-project.org>
Thu, 15 Mar 2012 16:37:44 +0000 (16:37 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Thu, 15 Mar 2012 16:37:44 +0000 (16:37 +0000)
X-SVN-Rev: 31619

icu4c/source/common/unicode/platform.h

index e1b815b777bcbd622bac3e94fd0c64882302fc77..dccc7018e0dee7c56471710b754ce13bc1e3c2fd 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1997-2011, International Business Machines
+*   Copyright (C) 1997-2012, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
 #   include <android/api-level.h>
 #elif defined(linux) || defined(__linux__) || defined(__linux)
 #   define U_PLATFORM U_PF_LINUX
-#elif defined(BSD)
+#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #   define U_PLATFORM U_PF_BSD
 #elif defined(sun) || defined(__sun)
     /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */