From 9082e7af37bd6490e6bf6d5de44cdbbad7949662 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 19 Dec 2018 12:55:17 -0800 Subject: [PATCH] Build libbase with _FILE_OFFSET_BITS=64. sehr points out that we already have two bugs caused by not doing this: file.cpp has a call to pread with an off64_t that gets truncated, and mapped_file.cpp does similar with mmap. Bug: N/A Test: ran tests Change-Id: Ia098a836457e5adf109541235ad71c0ad7219da8 --- base/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/base/Android.bp b/base/Android.bp index 741664bb9..b0181aa6a 100644 --- a/base/Android.bp +++ b/base/Android.bp @@ -20,6 +20,7 @@ cc_defaults { "-Wall", "-Werror", "-Wextra", + "-D_FILE_OFFSET_BITS=64", ], }