readdir: use getdents64 for compatibility with ARM64

This commit is contained in:
Antonio SJ Musumeci 2020-08-02 18:43:09 -04:00
parent c97102bc9d
commit 5989d41a86
7 changed files with 41 additions and 52 deletions

View file

@ -31,7 +31,7 @@ namespace fs
unsigned int count_)
{
#if defined SYS_getdents64
return ::syscall(SYS_getdents,fd_,dirp_,count_);
return ::syscall(SYS_getdents64,fd_,dirp_,count_);
#else
return (errno=ENOTSUP,-1);
#endif