diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-12-19 02:07:09 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-12-19 02:07:09 +0100 |
commit | ce42a3bf1849aa5b25920d5343f83e6963c74d02 (patch) | |
tree | d54cedaff95a3b6f7339466237edee8946887d5e /libc/sysdeps/linux/common/getdents.c | |
parent | c7138026b726c70a10951ea5f10dfeefbb08156f (diff) | |
download | uClibc-alpine-ce42a3bf1849aa5b25920d5343f83e6963c74d02.tar.bz2 uClibc-alpine-ce42a3bf1849aa5b25920d5343f83e6963c74d02.tar.xz |
tweak getdents && LFS && __WORDSIZE==64
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/getdents.c')
-rw-r--r-- | libc/sysdeps/linux/common/getdents.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index 73d10c450..b518cc092 100644 --- a/libc/sysdeps/linux/common/getdents.c +++ b/libc/sysdeps/linux/common/getdents.c @@ -18,6 +18,12 @@ #include <bits/kernel_types.h> #include <bits/kernel-features.h> +#if !(defined __UCLIBC_HAS_LFS__ && defined __NR_getdents64 && __WORDSIZE == 64) +/* If the condition above is met, __getdents is defined as an alias + * for __getdents64 (see getdents64.c). Otherwise... + */ + + /* With newer versions of linux, the getdents syscall returns d_type * information after the name field. * @@ -163,5 +169,6 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes) return ret; } +#endif #endif |