diff --git a/src/benchmark.cc b/src/benchmark.cc index 4a6789f99..e49cbdc4e 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -32,6 +32,9 @@ #ifdef __ANDROID_NDK__ #include +#if __ANDROID_API__ < 26 +extern "C" __attribute__((weak)) int mallopt(int, int); +#endif #endif #ifdef BENCHMARK_OS_LINUX