summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getdents64.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-15 00:43:42 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-15 00:43:42 +0000
commit40699dc7136c0ffa1d380727a74d7062c4c9557f (patch)
treed9d0be21180d380f65090dfb970b5dad2935f20d /libc/sysdeps/linux/common/getdents64.c
parent45fbae2fffd0d49dd6f07194407c193e2f4bd6ae (diff)
we cant simply alias getdents to getdents64 as they deal with structures of different sizes on 32bit hosts
Diffstat (limited to 'libc/sysdeps/linux/common/getdents64.c')
-rw-r--r--libc/sysdeps/linux/common/getdents64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/getdents64.c b/libc/sysdeps/linux/common/getdents64.c
index da193ebab..fcc6903b5 100644
--- a/libc/sysdeps/linux/common/getdents64.c
+++ b/libc/sysdeps/linux/common/getdents64.c
@@ -95,8 +95,10 @@ ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes)
return (char *) dp - buf;
}
+#if __WORDSIZE == 64
/* since getdents doesnt give us d_type but getdents64 does, try and
* use getdents64 as much as possible */
attribute_hidden strong_alias(__getdents64,__getdents)
+#endif
#endif /* __UCLIBC_HAS_LFS__ */