mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-21 23:48:22 +08:00
Defined ACCESSPERMS for musl
This commit is contained in:
parent
bf93a5eacc
commit
c5508535c1
@ -75,6 +75,9 @@ UString getAbsPath(const UString & path)
|
|||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#if !defined(ACCESSPERMS)
|
||||||
|
#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
|
||||||
|
#endif
|
||||||
bool isExistOnFs(const UString & path)
|
bool isExistOnFs(const UString & path)
|
||||||
{
|
{
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
@ -103,4 +106,4 @@ UString getAbsPath(const UString & path) {
|
|||||||
return UString(abs);
|
return UString(abs);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user