From ce31b506b7beb8afa75260d164a5515fe0507551 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 30 Nov 2019 22:37:05 +0800 Subject: [PATCH] process: Remove use of mallinfo under Musl --- src/base/process/process_metrics_posix.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base/process/process_metrics_posix.cc b/src/base/process/process_metrics_posix.cc index 044bd8d244..bc8c9f25c6 100644 --- a/src/base/process/process_metrics_posix.cc +++ b/src/base/process/process_metrics_posix.cc @@ -110,6 +110,8 @@ size_t ProcessMetrics::GetMallocUsage() { malloc_statistics_t stats = {0}; malloc_zone_statistics(nullptr, &stats); return stats.size_in_use; +#elif defined(OS_LINUX) && defined(__UCLIBC__) + return 0; #elif defined(OS_LINUX) || defined(OS_ANDROID) struct mallinfo minfo = mallinfo(); #if BUILDFLAG(USE_TCMALLOC)