summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-26 10:34:53 -0700
committerElliott Hughes <enh@google.com>2018-10-26 10:53:24 -0700
commita56a729c1402d1d65c53171577861cef5b0c41c4 (patch)
tree4976bac6f0cea6341429b00f7780ed34c9347c93 /fastboot
parent52db49b68fb6562300bc1fc4e08a1380e9b8d6d0 (diff)
downloadsystem_core-a56a729c1402d1d65c53171577861cef5b0c41c4.tar.gz
system_core-a56a729c1402d1d65c53171577861cef5b0c41c4.tar.bz2
system_core-a56a729c1402d1d65c53171577861cef5b0c41c4.zip
More Mac build fixes.
The libziparchive public headers that refer to `off64_t` also need the Mac workaround. In fastboot, there's a stray `lseek64` but since it's only for offset 0, any kind of seek is fine. Bug: N/A Test: builds Change-Id: I68b4f95202623ebf07ffe6c3e0e21437e7922c5b
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 81350fdb3..24f74f05b 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -852,7 +852,7 @@ static bool load_buf_fd(int fd, struct fastboot_buffer* buf) {
buf->image_size = sz;
}
- lseek64(fd, 0, SEEK_SET);
+ lseek(fd, 0, SEEK_SET);
int64_t limit = get_sparse_limit(sz);
if (limit) {
sparse_file** s = load_sparse_files(fd, limit);