From 0a59994c5a37ff3a035950f0f7d145c259d1ea38 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 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 e56ffbe63..7aac4be98 100644 --- a/fs_mgr/libsnapshot/snapuserd/Android.bp +++ b/fs_mgr/libsnapshot/snapuserd/Android.bp @@ -104,6 +104,10 @@ cc_defaults { "user-space-merge/snapuserd_server.cpp", ], + cflags: [ + "-D_FILE_OFFSET_BITS=64", + ], + static_libs: [ "libbase", "libbrotli",