Index: third_party/tcmalloc/chromium/src/base/sysinfo.cc |
diff --git a/third_party/tcmalloc/chromium/src/base/sysinfo.cc b/third_party/tcmalloc/chromium/src/base/sysinfo.cc |
index 82f3f56a90e71ef81f7ecc7b4e2c566025223a33..1bfac37a7e387fa962d1ed0277648b9fcf4ea51b 100644 |
--- a/third_party/tcmalloc/chromium/src/base/sysinfo.cc |
+++ b/third_party/tcmalloc/chromium/src/base/sysinfo.cc |
@@ -503,7 +503,9 @@ int NumCPUs(void) { |
// true. |
// ---------------------------------------------------------------------- |
bool HasPosixThreads() { |
-#if defined(__linux__) |
+// Android doesn't have confstr(), assume posix thread and fallback to |
+// "other os". |
+#if defined(__linux__) && !defined(__ANDROID__) |
#ifndef _CS_GNU_LIBPTHREAD_VERSION |
#define _CS_GNU_LIBPTHREAD_VERSION 3 |
#endif |