summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-07-05 07:12:37 +0000
committerMike Frysinger <vapier@gentoo.org>2006-07-05 07:12:37 +0000
commite8b1c6749b92f1f87668f430bfe6719d88d0a992 (patch)
tree551afc156c7e5e433d7d9d47eda28c587fd38c10 /libc/sysdeps/linux/common
parent9faf71ce6876714b7d378be9baa3c666869ae0f0 (diff)
Atsushi Nemoto writes: Some archs (such as mips64) do not have getdents64 syscall but have getdents syscall. Define alias for it.
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/getdents.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c
index 7fe191d77..11c2570c4 100644
--- a/libc/sysdeps/linux/common/getdents.c
+++ b/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)