Browse Source

__ARCH_HAS_DEPRECATED_SYSCALLS__ case fix. getdents is deprecated.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato 8 năm trước cách đây
mục cha
commit
7b495396fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libc/sysdeps/linux/common/getdents.c

+ 1 - 1
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);