--- base/process/memory_linux.cc.orig 2017-09-15 08:41:43.000000000 +0000 +++ base/process/memory_linux.cc 2017-09-15 08:44:39.804995469 +0000 @@ -21,6 +21,12 @@ #include "third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h" #endif +#if defined(LIBC_GLIBC) +extern "C" { +extern void *__libc_malloc(size_t size); +} +#endif + namespace base { size_t g_oom_size = 0U; --- base/process/memory_linux.cc.orig 2017-09-15 08:46:55.000000000 +0000 +++ base/process/memory_linux.cc 2017-09-15 08:51:34.422016858 +0000 @@ -107,7 +107,7 @@ (!defined(LIBC_GLIBC) && !defined(USE_TCMALLOC)) *result = malloc(size); #elif defined(LIBC_GLIBC) && !defined(USE_TCMALLOC) - *result = __libc_malloc(size); + *result = ::__libc_malloc(size); #elif defined(USE_TCMALLOC) *result = tc_malloc_skip_new_handler(size); #endif