[asan] Use posix strerror_r interceptor on android.

This fixes a regression in r297315.

llvm-svn: 301243
This commit is contained in:
Evgeniy Stepanov 2017-04-24 20:25:39 +00:00
parent 4474652c95
commit ed8c47477f
1 changed files with 1 additions and 1 deletions

View File

@ -3330,7 +3330,7 @@ INTERCEPTOR(char *, strerror, int errnum) {
// * GNU version returns message pointer, which points to either buf or some
// static storage.
#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || \
SANITIZER_MAC
SANITIZER_MAC || SANITIZER_ANDROID
// POSIX version. Spec is not clear on whether buf is NULL-terminated.
// At least on OSX, buf contents are valid even when the call fails.
INTERCEPTOR(int, strerror_r, int errnum, char *buf, SIZE_T buflen) {