Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_process_process__metrics__posix.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_process_process__metrics__posix.cc
--- src/3rdparty/chromium/base/process/process_metrics_posix.cc.orig 2018-11-13 18:25:11 UTC | --- src/3rdparty/chromium/base/process/process_metrics_posix.cc.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/process/process_metrics_posix.cc | +++ src/3rdparty/chromium/base/process/process_metrics_posix.cc | ||||
@@ -19,6 +19,8 @@ | @@ -20,6 +20,8 @@ | ||||
#if defined(OS_MACOSX) | #if defined(OS_APPLE) | ||||
#include <malloc/malloc.h> | #include <malloc/malloc.h> | ||||
+#elif defined(OS_FREEBSD) | +#elif defined(OS_FREEBSD) | ||||
+#include <stdlib.h> | +#include <stdlib.h> | ||||
#else | #else | ||||
#include <malloc.h> | #include <malloc.h> | ||||
#endif | #endif | ||||
@@ -107,7 +109,7 @@ size_t ProcessMetrics::GetMallocUsage() { | @@ -126,7 +128,7 @@ size_t ProcessMetrics::GetMallocUsage() { | ||||
#else | #else | ||||
return minfo.hblkhd + minfo.arena; | return minfo.hblkhd + minfo.arena; | ||||
#endif | #endif | ||||
-#elif defined(OS_FUCHSIA) | -#elif defined(OS_FUCHSIA) | ||||
+#elif defined(OS_FUCHSIA) || defined(OS_BSD) | +#elif defined(OS_FUCHSIA) || defined(OS_BSD) | ||||
// TODO(fuchsia): Not currently exposed. https://crbug.com/735087. | // TODO(fuchsia): Not currently exposed. https://crbug.com/735087. | ||||
return 0; | return 0; | ||||
#endif | #endif |