Browse Source

Atsushi Nemoto writes: Some archs (such as mips64) do not have getdents64 syscall but have getdents syscall. Define alias for it.

Mike Frysinger 18 years ago
parent
commit
e8b1c6749b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libc/sysdeps/linux/common/getdents.c

+ 4 - 0
libc/sysdeps/linux/common/getdents.c

@@ -101,6 +101,10 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
     return (char *) dp - buf;
 }
 
+#if defined __UCLIBC_HAS_LFS__ && ! defined __NR_getdents64
+attribute_hidden strong_alias(__getdents,__getdents64)
+#endif
+
 #elif __WORDSIZE == 32
 
 libc_hidden_proto(memmove)