[cmake-developers] [PATCH] Fix building on musl-libc
Brad King
brad.king at kitware.com
Mon Nov 30 10:40:40 EST 2015
On 11/25/2015 11:15 PM, Kylie McClain wrote:
> Hi, this is a really short patch that fixes building cmake on musl-libc.
> #if defined( _MSC_VER )
> typedef unsigned short mode_t;
> +#else
> +#include <sys/stat.h>
> #endif
Thanks. Does <sys/types.h> work here instead? It should provide mode_t:
http://pubs.opengroup.org/onlinepubs/009696699/basedefs/sys/types.h.html
-Brad
More information about the cmake-developers
mailing list