Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9082e7af authored by Elliott Hughes's avatar Elliott Hughes
Browse files

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
parent 1baa19b1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ cc_defaults {
        "-Wall",
        "-Werror",
        "-Wextra",
        "-D_FILE_OFFSET_BITS=64",
    ],
}