Skip to content

Commit

Permalink
Defined ACCESSPERMS for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
mischif authored Feb 20, 2024
1 parent bf93a5e commit bf16a12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -103,4 +106,4 @@ UString getAbsPath(const UString & path) {
return UString(abs);
return path;
}
#endif
#endif

0 comments on commit bf16a12

Please sign in to comment.