Defined ACCESSPERMS for musl

This commit is contained in:
Jeremy Brown 2024-02-20 13:33:36 -05:00 committed by Nikolaj Schlej
parent bf93a5eacc
commit c5508535c1

View File

@ -75,6 +75,9 @@ UString getAbsPath(const UString & path)
#else
#include <unistd.h>
#include <stdlib.h>
#if !defined(ACCESSPERMS)
#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
#endif
bool isExistOnFs(const UString & path)
{
struct stat buf;
@ -103,4 +106,4 @@ UString getAbsPath(const UString & path) {
return UString(abs);
return path;
}
#endif
#endif