From db7c01cf1f8b35e32d8076ea0260b5dea701edc0 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Thu, 10 Sep 2015 06:20:47 +0000 Subject: [PATCH] ICU-11435 SmartOS fixes X-SVN-Rev: 37937 --- icu4c/source/common/uposixdefs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/icu4c/source/common/uposixdefs.h b/icu4c/source/common/uposixdefs.h index bd64d91abef..a75d5130f9b 100644 --- a/icu4c/source/common/uposixdefs.h +++ b/icu4c/source/common/uposixdefs.h @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2011-2012, International Business Machines +* Copyright (C) 2011-2015, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * file name: uposixdefs.h @@ -42,8 +42,10 @@ * and define _XOPEN_SOURCE to different values depending on __STDC_VERSION__. * In C++ source code (e.g., putil.cpp), __STDC_VERSION__ is not defined at all. */ +#if !defined(_SCO_DS) # define _XOPEN_SOURCE 600 #endif +#endif /* * Make sure things like readlink and such functions work. @@ -52,9 +54,11 @@ * * z/OS needs this definition for timeval and to get usleep. */ +#if !defined(__sun) && !defined(_SCO_DS) #if !defined(_XOPEN_SOURCE_EXTENDED) # define _XOPEN_SOURCE_EXTENDED 1 #endif +#endif /* * There is an issue with turning on _XOPEN_SOURCE_EXTENDED on certain platforms.