Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_util_memory__pressure_system__memory__pressure__evaluator.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_util_memory__pressure_system__memory__pressure__evaluator.cc
- This file was added.
--- src/3rdparty/chromium/base/util/memory_pressure/system_memory_pressure_evaluator.cc.orig 2021-12-15 16:12:54 UTC | |||||
+++ src/3rdparty/chromium/base/util/memory_pressure/system_memory_pressure_evaluator.cc | |||||
@@ -14,7 +14,7 @@ | |||||
#elif defined(OS_WIN) | |||||
#include "base/util/memory_pressure/system_memory_pressure_evaluator_win.h" | |||||
#include "base/win/windows_version.h" | |||||
-#elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | |||||
+#elif (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) | |||||
#include "base/util/memory_pressure/system_memory_pressure_evaluator_linux.h" | |||||
#endif | |||||
@@ -45,7 +45,7 @@ SystemMemoryPressureEvaluator::CreateDefaultSystemEval | |||||
evaluator->CreateOSSignalPressureEvaluator(monitor->CreateVoter()); | |||||
} | |||||
return evaluator; | |||||
-#elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | |||||
+#elif (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) | |||||
return std::make_unique<util::os_linux::SystemMemoryPressureEvaluator>( | |||||
monitor->CreateVoter()); | |||||
#endif |