From 91b8abca2ff1624d21700578a12bb85054761f5f Mon Sep 17 00:00:00 2001 From: Victor Hsieh Date: Thu, 21 Nov 2019 13:23:56 -0800 Subject: [PATCH] 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 --- tests/ApkVerityTest/block_device_writer/Android.bp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/ApkVerityTest/block_device_writer/Android.bp b/tests/ApkVerityTest/block_device_writer/Android.bp index deed3a00d2fec..e7a63e4141729 100644 --- a/tests/ApkVerityTest/block_device_writer/Android.bp +++ b/tests/ApkVerityTest/block_device_writer/Android.bp @@ -22,7 +22,13 @@ cc_test { 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"],