diff --git a/src/base/process/process_metrics_posix.cc b/src/base/process/process_metrics_posix.cc index 49f1957871..c10e0ddfa6 100644 --- a/src/base/process/process_metrics_posix.cc +++ b/src/base/process/process_metrics_posix.cc @@ -109,6 +109,9 @@ void IncreaseFdLimitTo(unsigned int max_descriptors) { namespace { size_t GetMallocUsageMallinfo() { +#if defined(__MUSL__) + return 0; +#else #if defined(__GLIBC__) && defined(__GLIBC_PREREQ) #if __GLIBC_PREREQ(2, 33) #define MALLINFO2_FOUND_IN_LIBC @@ -124,6 +127,7 @@ size_t GetMallocUsageMallinfo() { #else return minfo.hblkhd + minfo.arena; #endif +#endif } } // namespace