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
This commit is contained in:
Elliott Hughes 2018-12-19 12:55:17 -08:00
parent 1baa19b1a6
commit 9082e7af37

View file

@ -20,6 +20,7 @@ cc_defaults {
"-Wall",
"-Werror",
"-Wextra",
"-D_FILE_OFFSET_BITS=64",
],
}