diff options
author | Elliott Hughes <enh@google.com> | 2014-08-28 10:42:10 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-08-28 10:42:10 -0700 |
commit | 973dfc7228efbc3644fc1011d3c4fe3e3242b34d (patch) | |
tree | ae50514e5e0ddfa68b1412c165eef355edec57cc | |
parent | f3cb7e0eed426b8f0302ca9dcf47cdf067ea93ca (diff) | |
download | chromium-973dfc7228efbc3644fc1011d3c4fe3e3242b34d.tar.gz |
Fix external/chromium build with strerror_r.
We're about to add GNU strerror_r to bionic in addition to the POSIX
one we've always had.
Bug: 16243479
Change-Id: I7ca907ed2b879feab4be8ba0180f83fc22fe86c6
-rw-r--r-- | base/safe_strerror_posix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/safe_strerror_posix.cc b/base/safe_strerror_posix.cc index a91bb8de..892592ae 100644 --- a/base/safe_strerror_posix.cc +++ b/base/safe_strerror_posix.cc @@ -9,7 +9,8 @@ #include <stdio.h> #include <string.h> -#define USE_HISTORICAL_STRERRO_R (defined(__GLIBC__) || defined(OS_NACL)) +#define USE_HISTORICAL_STRERRO_R (defined(__GLIBC__) || defined(__BIONIC__) || \ + defined(OS_NACL)) #if USE_HISTORICAL_STRERRO_R && defined(__GNUC__) // GCC will complain about the unused second wrap function unless we tell it |