ICU-9197 Fix BSD platform detection

X-SVN-Rev: 31619
This commit is contained in:
Michael Ow 2012-03-15 16:37:44 +00:00
parent 61eb675e8d
commit d6861c7617

View 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.
*
******************************************************************************
@ -131,7 +131,7 @@
# 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? */