From c449ba34d8dc2b605e419515249c0ef3c299306a Mon Sep 17 00:00:00 2001 From: Akilesh Kailash Date: Sun, 17 Sep 2023 09:34:43 -0700 Subject: [PATCH] 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 --- fs_mgr/libsnapshot/snapuserd/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs_mgr/libsnapshot/snapuserd/Android.bp b/fs_mgr/libsnapshot/snapuserd/Android.bp index 926148201..dca9f4938 100644 --- a/fs_mgr/libsnapshot/snapuserd/Android.bp +++ b/fs_mgr/libsnapshot/snapuserd/Android.bp @@ -96,6 +96,10 @@ cc_defaults { "user-space-merge/snapuserd_server.cpp", ], + cflags: [ + "-D_FILE_OFFSET_BITS=64", + ], + static_libs: [ "libbase", "libbrotli",