فهرست منبع

dirent.h: use __ssize_t instead of ssize_t

getdents[64].c: forgot to include dirent.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 سال پیش
والد
کامیت
329befa261
3فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 2
      include/dirent.h
  2. 1 0
      libc/sysdeps/linux/common/getdents.c
  3. 1 0
      libc/sysdeps/linux/common/getdents64.c

+ 2 - 2
include/dirent.h

@@ -369,9 +369,9 @@ extern int versionsort64 (__const struct dirent64 **__e1,
 __END_DECLS
 
 #ifdef _LIBC
-extern ssize_t __getdents(int fd, char *buf, size_t count) attribute_hidden;
+extern __ssize_t __getdents(int fd, char *buf, size_t count) attribute_hidden;
 # ifdef __UCLIBC_HAS_LFS__
-extern ssize_t __getdents64 (int fd, char *buf, size_t count) attribute_hidden;
+extern __ssize_t __getdents64 (int fd, char *buf, size_t count) attribute_hidden;
 # endif
 #endif
 

+ 1 - 0
libc/sysdeps/linux/common/getdents.c

@@ -11,6 +11,7 @@
 #include <stdint.h>
 #include <string.h>
 #include <unistd.h>
+#include <dirent.h>
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/syscall.h>

+ 1 - 0
libc/sysdeps/linux/common/getdents64.c

@@ -12,6 +12,7 @@
 #include <stdint.h>
 #include <string.h>
 #include <unistd.h>
+#include <dirent.h>
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/syscall.h>