block_device_reader: add -D_FILE_OFFSET_BITS=64
This allows pread/pwrite to access big storage.
Test: run the command, see expected behavior
Bug: 144164497
Change-Id: Ie560da4fc44f8bd10c332629ac9732053990f808
diff --git a/tests/ApkVerityTest/block_device_writer/Android.bp b/tests/ApkVerityTest/block_device_writer/Android.bp
index deed3a0..e7a63e4 100644
--- a/tests/ApkVerityTest/block_device_writer/Android.bp
+++ b/tests/ApkVerityTest/block_device_writer/Android.bp
@@ -22,7 +22,13 @@
stem: "block_device_writer",
srcs: ["block_device_writer.cpp"],
- cflags: ["-Wall", "-Werror", "-Wextra", "-g"],
+ cflags: [
+ "-D_FILE_OFFSET_BITS=64",
+ "-Wall",
+ "-Werror",
+ "-Wextra",
+ "-g",
+ ],
shared_libs: ["libbase", "libutils"],
test_suites: ["general-tests"],