Fix pread/pwrite for LP64.

Unlike on 32-bit systems where off_t is 32-bit, we don't want to
throw away the top 32 bits of an LP64 system's 64-bit off_t.

Change-Id: Ib2e0daeb4fc0b8ab3d1b983d0b371d8f81033b50
This commit is contained in:
Elliott Hughes
2013-11-06 13:10:37 -08:00
parent c4dbc16eb0
commit 8fbf8deb34
6 changed files with 18 additions and 4 deletions

View File

@@ -106,11 +106,9 @@ libc_common_src_files := \
bionic/memswap.c \
bionic/pathconf.c \
bionic/perror.c \
bionic/pread.c \
bionic/ptsname.c \
bionic/ptsname_r.c \
bionic/pututline.c \
bionic/pwrite.c \
bionic/reboot.c \
bionic/recv.c \
bionic/sched_cpualloc.c \
@@ -180,6 +178,8 @@ libc_common_src_files += \
bionic/__get_tls.cpp \
bionic/lseek64.c \
bionic/ndk_cruft.cpp \
bionic/pread.c \
bionic/pwrite.c \
bionic/statfs.c \
endif