From 10adb349f172199ad62a76413cfa474ed8dd9af9 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 9d12c427bb..e8f6960d92 100644 --- a/src/base/process/process_metrics_posix.cc +++ b/src/base/process/process_metrics_posix.cc @@ -119,6 +119,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_CHROMEOS) || defined(OS_ANDROID) struct mallinfo minfo = mallinfo(); #if BUILDFLAG(USE_TCMALLOC)