From 973dfc7228efbc3644fc1011d3c4fe3e3242b34d Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 28 Aug 2014 10:42:10 -0700 Subject: 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 --- base/safe_strerror_posix.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include -#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 -- cgit v1.2.3