diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index d065f6f68..ebd2ce564 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 7478d71c9..dae4124f8 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -35,6 +35,7 @@ #include #include #include +#include #define _unlink unlink #else #include