summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-02 13:35:47 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-12-02 13:35:47 (GMT)
commitd956816d70e7400b1d70f46f4f6adb87cee8c1ce (patch)
treeca3339e844c9ff5810aa8bc6d240fa75906f75b1
parent5257a3b931e3a2edc3fbe262c8215af6e7f5bfd7 (diff)
parent001043ac3078c49651f6af0f1ff1b31ef71a7665 (diff)
downloadCMake-d956816d70e7400b1d70f46f4f6adb87cee8c1ce.zip
CMake-d956816d70e7400b1d70f46f4f6adb87cee8c1ce.tar.gz
CMake-d956816d70e7400b1d70f46f4f6adb87cee8c1ce.tar.bz2
Merge topic 'include-for-mode_t'
001043ac Include `sys/types.h` header to get `mode_t`
-rw-r--r--Source/cmStandardIncludes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index dd8fa9c..aed2e74 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -54,6 +54,8 @@
#if defined( _MSC_VER )
typedef unsigned short mode_t;
+#else
+# include <sys/types.h>
#endif
// use this class to shrink the size of symbols in .o files