@@ -72,6 +72,8 @@ struct __dirstream {
extern int __getdents(unsigned int fd, struct dirent *dirp, unsigned int count);
+#ifdef __UCLIBC_HAS_LFS__
extern int __getdents64 (unsigned int fd, struct dirent64 *dirp, unsigned int count);
+#endif
#endif /* dirent.h */
@@ -39,6 +39,10 @@
#include <sys/syscall.h>
#include <unistd.h>
+#if ! defined __UCLIBC_HAS_LFS__
+#define off64_t off_t
+
#ifdef __NR_pread
#define __NR___syscall_pread __NR_pread
static inline _syscall4(ssize_t, __syscall_pread, int, fd,