Merge pull request #2797 from akiernan/fix-musl-allperms

lib/repo-checkout: Add ALLPERMS for musl
This commit is contained in:
Colin Walters 2022-12-31 13:13:26 -05:00 committed by GitHub
commit b833f17aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,11 @@ G_BEGIN_DECLS
#define DEFAULT_DIRECTORY_MODE 0775 #define DEFAULT_DIRECTORY_MODE 0775
#define DEFAULT_REGFILE_MODE 0660 #define DEFAULT_REGFILE_MODE 0660
/* This exists in glibc's sys/stat.h, but not on musl */
#ifndef ALLPERMS
#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
#endif
/* This file contains private implementation data format definitions /* This file contains private implementation data format definitions
* read by multiple implementation .c files. * read by multiple implementation .c files.
*/ */