aboutsummaryrefslogtreecommitdiffstats
path: root/main/cmake/musl-header-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/cmake/musl-header-fixes.patch')
-rw-r--r--main/cmake/musl-header-fixes.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/cmake/musl-header-fixes.patch b/main/cmake/musl-header-fixes.patch
new file mode 100644
index 0000000000..edbdc270e3
--- /dev/null
+++ b/main/cmake/musl-header-fixes.patch
@@ -0,0 +1,13 @@
+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