فهرست منبع

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

Mike Frysinger 18 سال پیش
والد
کامیت
e8b1c6749b
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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)