summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmStandardIncludes.h5
-rw-r--r--Source/cmSystemTools.cxx1
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>