aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasyl Gello <vasek.gello@gmail.com>2019-11-14 20:57:17 +0000
committerVasyl Gello <vasek.gello@gmail.com>2019-11-15 00:21:23 +0200
commitbb81885257418a3ffb6da904efdfe7f6ba8b39d2 (patch)
tree171b536f67118539204de551ec53f5eec2879985
parentb3b6f892bfdf09cac54848110b269b9ec5f941a4 (diff)
downloadandroid_external_p7zip-lineage-16.0.tar.gz
android_external_p7zip-lineage-16.0.tar.bz2
android_external_p7zip-lineage-16.0.zip
p7zip: Enforce large files supportlineage-16.0
The 64 bit ABI is not affected by this bug but 32-bit ABI requires off_t64 support to be able to work with archives containing files with total size > 2GB (2^32 bytes) Test: in terminal app: mkdir /sdcard/test cd /sdcard/test for i in `seq 1 1 21` do dd if=/dev/urandom \ of=/sdcard/test/`printf "%02d.bin" $i` \ bs=1048576 count=100 done 7z -mx0 a test_2100.7z 01.bin 02.bin 03.bin 04.bin \ 05.bin 06.bin 07.bin 08.bin 09.bin 10.bin 11.bin \ 12.bin 13.bin 14.bin 15.bin 16.bin 17.bin 18.bin \ 19.bin 20.bin 21.bin 7z t test_2100.7z cd / rm -rf /sdcard/test Change-Id: I896682163879b9f79d4072c161fba678a6677473 Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
-rw-r--r--Android.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index c05b093..449fa20 100644
--- a/Android.mk
+++ b/Android.mk
@@ -11,7 +11,8 @@ common_cflags := \
-DBREAK_HANDLER \
-DUNICODE \
-D_UNICODE \
- -DUNIX_USE_WIN_FILE
+ -DUNIX_USE_WIN_FILE \
+ -D_FILE_OFFSET_BITS=64
common_cflags += \
-fexceptions \