mode_t needs sys/stat.h --- ./Source/cmStandardIncludes.h.orig +++ ./Source/cmStandardIncludes.h @@ -74,6 +74,8 @@ #if defined( _MSC_VER ) typedef unsigned short mode_t; +#else +#include #endif // use this class to shrink the size of symbols in .o files