../src/ls.c: In function 'print_dir': ../src/ls.c:3026:24: error: 'SYS_getdents' undeclared (first use in this function); did you mean 'SYS_getdents64'? 3026 | if (syscall (SYS_getdents, dirfd (dirp), NULL, 0) == -1 | ^~~~~~~~~~~~ | SYS_getdents64 ../src/ls.c:3026:24: note: each undeclared identifier is reported only once for each function it appears in diff --git a/src/ls.c b/src/ls.c index 24b9832..64ecf40 100644 --- a/src/ls.c +++ b/src/ls.c @@ -3018,7 +3018,7 @@ print_dir (char const *name, char const *realname, bool command_line_arg) if (errno != EOVERFLOW) break; } -#ifdef __linux__ +#if defined(__linux__) && defined(__x86_64__) else if (! found_any_entries) { /* If readdir finds no directory entries at all, not even "." or