OSDN Git Service

Fix mac sdk build
authorKenny Root <kroot@google.com>
Thu, 19 Sep 2013 17:29:16 +0000 (10:29 -0700)
committerKenny Root <kroot@google.com>
Thu, 19 Sep 2013 17:43:15 +0000 (10:43 -0700)
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

libdex/ZipArchive.cpp

index 77d387e..f70a5df 100644 (file)
@@ -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