diff --git a/srcpkgs/cmake/patches/musl-header-fixes.patch b/srcpkgs/cmake/patches/musl-header-fixes.patch new file mode 100644 index 0000000000..9a155981e6 --- /dev/null +++ b/srcpkgs/cmake/patches/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 + #endif + + // use this class to shrink the size of symbols in .o files diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template index 920f897de4..417f7122ae 100644 --- a/srcpkgs/cmake/template +++ b/srcpkgs/cmake/template @@ -1,7 +1,7 @@ # Template file for 'cmake' pkgname=cmake version=3.2.2 -revision=1 +revision=2 build_style=configure makedepends="zlib-devel bzip2-devel expat-devel libcurl-devel jsoncpp-devel ncurses-devel libarchive-devel" short_desc="Cross-platform, open-source build system"