Skip to content

Commit ca95e95

Browse files
committed
tlshd: Define ALLPERMS if it doesn't exist to fix musl build
ALLPERMS exists in glibc, but not on musl, so we manually define it if it doesn't exist. This fixes building on musl systems. Signed-off-by: Alistair Francis <[email protected]>
1 parent 7043a68 commit ca95e95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tlshd/config.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646

4747
static GKeyFile *tlshd_configuration;
4848

49+
/**
50+
* ALLPERMS exists in glibc, but not on musl, so we
51+
* manually define it if it doesn't exist
52+
*/
53+
#ifndef ALLPERMS
54+
#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
55+
#endif
56+
4957
/**
5058
* tlshd_config_init - Read tlshd's config file
5159
* @pathname: Pathname to config file

0 commit comments

Comments
 (0)