[git commit future 1/1] dirent.h: use __ssize_t instead of ssize_t
Peter S. Mazinger
ps.m at gmx.net
Wed Mar 16 19:20:32 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=973a7180d62e6ca1500afe71bcc1dad2170820d9
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
getdents[64].c: forgot to include dirent.h
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
include/dirent.h | 4 ++--
libc/sysdeps/linux/common/getdents.c | 1 +
libc/sysdeps/linux/common/getdents64.c | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/dirent.h b/include/dirent.h
index 37d528e..9e2b254 100644
--- a/include/dirent.h
+++ b/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
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c
index a122d20..f321aea 100644
--- a/libc/sysdeps/linux/common/getdents.c
+++ b/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>
diff --git a/libc/sysdeps/linux/common/getdents64.c b/libc/sysdeps/linux/common/getdents64.c
index 1e1e170..e1133ff 100644
--- a/libc/sysdeps/linux/common/getdents64.c
+++ b/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>
--
1.7.3.4
More information about the uClibc-cvs
mailing list