summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/misc/dirent/dirstream.h2
-rw-r--r--libc/sysdeps/linux/powerpc/pread_write.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/libc/misc/dirent/dirstream.h b/libc/misc/dirent/dirstream.h
index 5cb63a23d..2dd0264fc 100644
--- a/libc/misc/dirent/dirstream.h
+++ b/libc/misc/dirent/dirstream.h
@@ -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 */
diff --git a/libc/sysdeps/linux/powerpc/pread_write.c b/libc/sysdeps/linux/powerpc/pread_write.c
index e9dd36680..7f8923720 100644
--- a/libc/sysdeps/linux/powerpc/pread_write.c
+++ b/libc/sysdeps/linux/powerpc/pread_write.c
@@ -39,6 +39,10 @@
#include <sys/syscall.h>
#include <unistd.h>
+#if ! defined __UCLIBC_HAS_LFS__
+#define off64_t off_t
+#endif
+
#ifdef __NR_pread
#define __NR___syscall_pread __NR_pread
static inline _syscall4(ssize_t, __syscall_pread, int, fd,