From 001043ac3078c49651f6af0f1ff1b31ef71a7665 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Wed, 25 Nov 2015 18:12:06 -0500 Subject: Include `sys/types.h` header to get `mode_t` Do not depend on it being included by other system headers. It is not included by others on musl-libc, for example. --- Source/cmStandardIncludes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 468a589..e212616 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -54,6 +54,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 -- cgit v0.12