diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-01-26 20:03:09 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-01-26 20:03:09 (GMT) |
commit | 900ad59867f7949b1b3a46ed53adc2d0197b8bb7 (patch) | |
tree | 8e1be8e83ecbf0a59a2278fc69ad2e22bce14127 /Source | |
parent | 7527fbccc28a051142a53dd21ca7fe8e7fae2613 (diff) | |
download | CMake-900ad59867f7949b1b3a46ed53adc2d0197b8bb7.zip CMake-900ad59867f7949b1b3a46ed53adc2d0197b8bb7.tar.gz CMake-900ad59867f7949b1b3a46ed53adc2d0197b8bb7.tar.bz2 |
ERR: Fix build problems on Visual Studio 6
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmStandardIncludes.h | 5 | ||||
-rw-r--r-- | Source/cmSystemTools.cxx | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index d065f6f..ebd2ce5 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -118,6 +118,11 @@ extern int putenv (char *__string) __THROW; # endif #endif +#ifdef _MSC_VER +typedef unsigned short mode_t; +#endif + + #ifdef CM_HAS_STD_BUT_NOT_FOR_IOSTREAM // some compilers have std:: but not for the stream library, // so we have to bring it into the std namespace by hand. diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 7478d71..dae4124 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -35,6 +35,7 @@ #include <string.h> #include <windows.h> #include <direct.h> +#include <io.h> #define _unlink unlink #else #include <sys/types.h> |