Browse Source

Fixup some small issues that show up when large file support is disabled

Eric Andersen 22 years ago
parent
commit
a6e5000686
2 changed files with 6 additions and 0 deletions
  1. 2 0
      libc/misc/dirent/dirstream.h
  2. 4 0
      libc/sysdeps/linux/powerpc/pread_write.c

+ 2 - 0
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  */

+ 4 - 0
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,