Define ALLPERMS for musl libc systems. (#379)
authormaxice8 <30738253+maxice8@users.noreply.github.com>
Mon, 11 Mar 2019 17:32:45 +0000 (14:32 -0300)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 11 Mar 2019 17:32:45 +0000 (17:32 +0000)
test/test_syscalls.c

index e9a51895ae0015a19d77503e9ffdace2bbd90881..db4be566d60b91ff8e845ff58b69141f59d72926 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#ifndef ALLPERMS
+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
+#endif
+
 
 static char testfile[1024];
 static char testfile2[1024];