From bf16a12a282659f2d3e35355fdf027eafd06dff3 Mon Sep 17 00:00:00 2001 From: Jeremy Brown Date: Tue, 20 Feb 2024 13:33:36 -0500 Subject: [PATCH] Defined ACCESSPERMS for musl --- common/filesystem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/filesystem.cpp b/common/filesystem.cpp index b2b8d65b4..5287a0c83 100644 --- a/common/filesystem.cpp +++ b/common/filesystem.cpp @@ -75,6 +75,9 @@ UString getAbsPath(const UString & path) #else #include #include +#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 \ No newline at end of file +#endif