Compile with -D_FILE_OFFSET_BITS to support 32-bit userspace

This is to support when partition sizes are greater than 2GB (2^31)
on 32-bit userspace.

Bug: 300178204
Test: OTA on device with 32-bit userspace + product partition > 2GB
Ignore-AOSP-First: Cherrypick from AOSP
Change-Id: I7074682352d8388ed410c684cb7cb0fa346ba24c
Signed-off-by: Akilesh Kailash <akailash@google.com>
This commit is contained in:
Akilesh Kailash 2023-09-17 09:34:43 -07:00
parent a6c1124738
commit c449ba34d8
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ cc_defaults {
"user-space-merge/snapuserd_server.cpp",
],
cflags: [
"-D_FILE_OFFSET_BITS=64",
],
static_libs: [
"libbase",
"libbrotli",