void-packages/srcpkgs/cmake/patches/musl-header-fixes.patch

13 lines
272 B
Diff

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 <sys/stat.h>
#endif
// use this class to shrink the size of symbols in .o files