aboutsummaryrefslogtreecommitdiffstats
path: root/main/coreutils/ls.patch
blob: 0e2057caec45e7c72eb2f18ec866a0bb82575128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
../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