aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-base_system_sys__info.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-base_system_sys__info.h')
-rw-r--r--devel/electron13/files/patch-base_system_sys__info.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-base_system_sys__info.h b/devel/electron13/files/patch-base_system_sys__info.h
new file mode 100644
index 000000000000..38527e6dff73
--- /dev/null
+++ b/devel/electron13/files/patch-base_system_sys__info.h
@@ -0,0 +1,20 @@
+--- base/system/sys_info.h.orig 2021-07-15 19:13:29 UTC
++++ base/system/sys_info.h
+@@ -209,6 +209,8 @@ class BASE_EXPORT SysInfo {
+ // On Desktop this returns true when memory <= 512MB.
+ static bool IsLowEndDevice();
+
++ static uint64_t MaxSharedMemorySize();
++
+ private:
+ FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory);
+ FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo);
+@@ -218,7 +220,7 @@ class BASE_EXPORT SysInfo {
+ static bool IsLowEndDeviceImpl();
+ static HardwareInfo GetHardwareInfoSync();
+
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || \
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) || \
+ defined(OS_AIX)
+ static int64_t AmountOfAvailablePhysicalMemory(
+ const SystemMemoryInfoKB& meminfo);