aboutsummaryrefslogtreecommitdiff
path: root/libdex
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-09-19 10:29:16 -0700
committerKenny Root <kroot@google.com>2013-09-19 10:43:15 -0700
commitdfec26e7ded987620e5b8e2eb88c4b02d479fdca (patch)
tree290176cb85c6092c58acdf145ec93899927d8a74 /libdex
parent386a7f3314911c9250ec984092022ed634dfdb6d (diff)
Fix mac sdk build
Macs don't have off64_t and instead use loff_t. This is taken care of in the Compat.h header from system/core. Include that. Bug: 10424836 Change-Id: Ic892e1edfecab502159209d463394864370c5537
Diffstat (limited to 'libdex')
-rw-r--r--libdex/ZipArchive.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdex/ZipArchive.cpp b/libdex/ZipArchive.cpp
index 77d387ee3..f70a5dfbd 100644
--- a/libdex/ZipArchive.cpp
+++ b/libdex/ZipArchive.cpp
@@ -28,6 +28,7 @@
#include <errno.h>
#include <JNIHelp.h> // TEMP_FAILURE_RETRY may or may not be in unistd
+#include <utils/Compat.h> // For off64_t and lseek64 on Mac
#ifndef O_BINARY
#define O_BINARY 0