Skip to content

Commit c550853

Browse files
mischifNikolajSchlej
authored andcommitted
Defined ACCESSPERMS for musl
1 parent bf93a5e commit c550853

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/filesystem.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ UString getAbsPath(const UString & path)
7575
#else
7676
#include <unistd.h>
7777
#include <stdlib.h>
78+
#if !defined(ACCESSPERMS)
79+
#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
80+
#endif
7881
bool isExistOnFs(const UString & path)
7982
{
8083
struct stat buf;
@@ -103,4 +106,4 @@ UString getAbsPath(const UString & path) {
103106
return UString(abs);
104107
return path;
105108
}
106-
#endif
109+
#endif

0 commit comments

Comments
 (0)