diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2016-01-01 19:49:25 +0900 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-01-06 23:54:30 +0100 |
commit | 7b495396fbf7bf604939d8150955ce891f7e8ccd (patch) | |
tree | 19203bc119382be306a868debaa0615646839b21 /libc/sysdeps/linux/common | |
parent | ccd86ad29826db38734fcca2c55c89199f2815bc (diff) |
__ARCH_HAS_DEPRECATED_SYSCALLS__ case fix. getdents is deprecated.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/getdents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index b65524eee..8f371eba4 100644 --- a/libc/sysdeps/linux/common/getdents.c +++ b/libc/sysdeps/linux/common/getdents.c @@ -91,7 +91,7 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes) const size_t size_diff = (offsetof (struct dirent, d_name) - offsetof (struct kernel_dirent, d_name)); -# ifdef __ARCH_HAS_DEPRECATED_SYSCALLS__ +# ifndef __ARCH_HAS_DEPRECATED_SYSCALLS__ red_nbytes = MIN (nbytes - ((nbytes / (offsetof (struct dirent, d_name) + 14)) * size_diff), nbytes - size_diff); |