summaryrefslogtreecommitdiff
path: root/linker/linker_block_allocator.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2017-02-14 16:33:06 -0800
committerDan Albert <danalbert@google.com>2017-02-14 19:29:31 -0800
commit8b154b1e8233e1d34a6a66b72369f05f8655b653 (patch)
treedd79c943d9db486842c8e4402cbd529ea2066f1d /linker/linker_block_allocator.cpp
parent9fc52deab1c6bec6a37860242eafe1ae4c205e44 (diff)
Guard the GNU strerror_r with an API check.
The deprecated headers have always had only the POSIX definition available (and it's always been available). With the unified headers as they are now, we actually make it unavailable for C++ users (C++ implies _GNU_SOURCE) targeting below M. Adding this guard means that pre-M users will still at least get the POSIX one. It's not great that moving to M as your target API will actually change the signature of your strerror_r, but I don't see a better option here (not until we have the compatibility library, anyway). Test: make checkbuild Bug: None Change-Id: I2d15702467533a826c4ec10fd973ee929d2b562a
Diffstat (limited to 'linker/linker_block_allocator.cpp')
0 files changed, 0 insertions, 0 deletions