From 3081c5ebfb8fa66c1cd104fec2c34f2493365898 Mon Sep 17 00:00:00 2001 From: Christian Poetzsch Date: Tue, 20 Dec 2016 16:13:41 +0000 Subject: [PATCH] libziparchive: use _FILE_OFFSET_BITS=64 On 32 bit system those calls may fail if one tries to unpack files which are bigger than 2GB. Use large file system support to fix this problem. Test: unpack a file bigger than 2GB on 32 bit Android systems Change-Id: Ibd9bd5fc4a2f8dc7df98bd595f4fd1638a4f0d4a Signed-off-by: Christian Poetzsch --- libziparchive/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/libziparchive/Android.bp b/libziparchive/Android.bp index fce137852..1495f3936 100644 --- a/libziparchive/Android.bp +++ b/libziparchive/Android.bp @@ -20,6 +20,7 @@ cc_defaults { "-DZLIB_CONST", "-Werror", "-Wall", + "-D_FILE_OFFSET_BITS=64", ], cppflags: [ "-Wold-style-cast",