diff options
| author | Elliott Hughes <enh@google.com> | 2018-12-19 12:55:17 -0800 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2018-12-19 12:55:17 -0800 |
| commit | 9082e7af37bd6490e6bf6d5de44cdbbad7949662 (patch) | |
| tree | d3fb2aed2ee19a3d6d43dbc59ce3fb72addcae77 /base | |
| parent | 1baa19b1a6bec9c0b1b067eef378646c62d9bf1b (diff) | |
| download | system_core-9082e7af37bd6490e6bf6d5de44cdbbad7949662.tar.gz system_core-9082e7af37bd6490e6bf6d5de44cdbbad7949662.tar.bz2 system_core-9082e7af37bd6490e6bf6d5de44cdbbad7949662.zip | |
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
Diffstat (limited to 'base')
| -rw-r--r-- | base/Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
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", ], } |
