diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-02-24 12:54:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-02-24 12:54:11 +0000 |
commit | a6e5000686d547b7fcd4effb8bb7a3b9bdc0aee0 (patch) | |
tree | 727ba237b7b33654cd4a1d129514b5757f9dece2 | |
parent | 1ad16873f18c34ac2080e989af6cd96cc7dc3ef6 (diff) |
Fixup some small issues that show up when large file support is disabled
-rw-r--r-- | libc/misc/dirent/dirstream.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/powerpc/pread_write.c | 4 |
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, |