diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-09-30 19:30:40 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-09-30 19:30:40 +0000 |
commit | ce0018f15d91ea30062957d1e6784a37919b30e5 (patch) | |
tree | 316d3ed074ff49fae4bee281474167c53f1ab990 /libc | |
parent | cfb053f612e024653e71cf0881b0f81699611ad5 (diff) |
- Fix compilation for mips ABI64 with no LFS.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/mips/pread_write.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/mips/pread_write.c b/libc/sysdeps/linux/mips/pread_write.c index 364d7852d..553864531 100644 --- a/libc/sysdeps/linux/mips/pread_write.c +++ b/libc/sysdeps/linux/mips/pread_write.c @@ -42,9 +42,11 @@ extern __typeof(pwrite64) __libc_pwrite64; # define __NR___libc_pread __NR_pread _syscall4(ssize_t, __libc_pread, int, fd, void *, buf, size_t, count, off_t, offset); weak_alias (__libc_pread, pread) -# define __NR___libc_pread64 __NR_pread +# ifdef __UCLIBC_HAS_LFS__ +# define __NR___libc_pread64 __NR_pread _syscall4(ssize_t, __libc_pread64, int, fd, void *, buf, size_t, count, off64_t, offset); weak_alias (__libc_pread64, pread64) +# endif /* __UCLIBC_HAS_LFS__ */ # else /* O32 || N32 */ # define __NR___syscall_pread __NR_pread static inline _syscall6(ssize_t, __syscall_pread, int, fd, void *, buf, @@ -84,9 +86,11 @@ weak_alias(__libc_pread64,pread64) # define __NR___libc_pwrite __NR_pwrite _syscall4(ssize_t, __libc_pwrite, int, fd, const void *, buf, size_t, count, off_t, offset); weak_alias (__libc_pwrite, pwrite) -# define __NR___libc_pwrite64 __NR_pwrite +# ifdef __UCLIBC_HAS_LFS__ +# define __NR___libc_pwrite64 __NR_pwrite _syscall4(ssize_t, __libc_pwrite64, int, fd, const void *, buf, size_t, count, off64_t, offset); weak_alias (__libc_pwrite64, pwrite64) +# endif /* __UCLIBC_HAS_LFS__ */ # else /* O32 || N32 */ # define __NR___syscall_pwrite __NR_pwrite static inline _syscall6(ssize_t, __syscall_pwrite, int, fd, const void *, buf, |