diff options
Diffstat (limited to 'src/unistd/access.c')
-rw-r--r-- | src/unistd/access.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unistd/access.c b/src/unistd/access.c index e7ce73a2..d6eed683 100644 --- a/src/unistd/access.c +++ b/src/unistd/access.c @@ -1,7 +1,12 @@ #include <unistd.h> +#include <fcntl.h> #include "syscall.h" int access(const char *filename, int amode) { +#ifdef SYS_access return syscall(SYS_access, filename, amode); +#else + return syscall(SYS_faccessat, AT_FDCWD, filename, amode, 0); +#endif } |