From e8b1c6749b92f1f87668f430bfe6719d88d0a992 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 5 Jul 2006 07:12:37 +0000 Subject: Atsushi Nemoto writes: Some archs (such as mips64) do not have getdents64 syscall but have getdents syscall. Define alias for it. --- libc/sysdeps/linux/common/getdents.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/common/getdents.c') 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) -- cgit v1.2.3