mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-10 23:43:58 +03:00
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.
This commit is contained in:
1 parent
b4a2ada297
commit
001043ac30
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user