Differential D18757 Diff 55230 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
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- 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 | |||||
@@ -19,6 +19,8 @@ | |||||
#if defined(OS_MACOSX) | |||||
#include <malloc/malloc.h> | |||||
+#elif defined(OS_FREEBSD) | |||||
+#include <stdlib.h> | |||||
#else | |||||
#include <malloc.h> | |||||
#endif | |||||
@@ -107,7 +109,7 @@ size_t ProcessMetrics::GetMallocUsage() { | |||||
#else | |||||
return minfo.hblkhd + minfo.arena; | |||||
#endif | |||||
-#elif defined(OS_FUCHSIA) | |||||
+#elif defined(OS_FUCHSIA) || defined(OS_BSD) | |||||
// TODO(fuchsia): Not currently exposed. https://crbug.com/735087. | |||||
return 0; | |||||
#endif |