summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-10 17:09:04 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-10 17:09:04 (GMT)
commite5b914209742a70c72c6cf8a8e6e1e005d8830f2 (patch)
tree3e82e13ca173bf5903d4c1235278cf6f1496a83c /Source/kwsys/SystemTools.cxx
parent4aa9c64511adb6e3aa1b686d07f8cbdf92dedbab (diff)
parent54d83caecfc1e0b8f047037ea6aaa7d54b64d8b3 (diff)
downloadCMake-e5b914209742a70c72c6cf8a8e6e1e005d8830f2.zip
CMake-e5b914209742a70c72c6cf8a8e6e1e005d8830f2.tar.gz
CMake-e5b914209742a70c72c6cf8a8e6e1e005d8830f2.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index e4c82d8..c2b6097 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -16,6 +16,14 @@
# define _XOPEN_SOURCE_EXTENDED
#endif
+#if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__))
+# define KWSYS_WINDOWS_DIRS
+#else
+# if defined(__SUNPRO_CC)
+# include <fcntl.h>
+# endif
+#endif
+
#include "kwsysPrivate.h"
#include KWSYS_HEADER(RegularExpression.hxx)
#include KWSYS_HEADER(SystemTools.hxx)
@@ -205,8 +213,7 @@ static time_t windows_filetime_to_posix_time(const FILETIME& ft)
}
#endif
-#if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__))
-
+#ifdef KWSYS_WINDOWS_DIRS
#include <wctype.h>
inline int Mkdir(const kwsys_stl::string& dir)