diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/pread.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/pread.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/pread.c b/sysdeps/unix/sysv/linux/pread.c index 9c2f8f24e1..08faa28a1e 100644 --- a/sysdeps/unix/sysv/linux/pread.c +++ b/sysdeps/unix/sysv/linux/pread.c @@ -48,11 +48,8 @@ __libc_pread (fd, buf, count, offset) ssize_t result; /* First try the syscall. */ -# if __BYTE_ORDER == __LITTLE_ENDIAN - result = INLINE_SYSCALL (pread, 5, fd, buf, count, offset, 0); -# elif __BYTE_ORDER == __BIG_ENDIAN - result = INLINE_SYSCALL (pread, 5, fd, buf, count, 0, offset); -# endif + result = INLINE_SYSCALL (pread, 5, fd, buf, count, + __LONG_LONG_PAIR (0, offset)); # if __ASSUME_PREAD_SYSCALL == 0 if (result == -1 && errno == ENOSYS) |