aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-base_system_sys__info.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron29/files/patch-base_system_sys__info.h')
-rw-r--r--devel/electron29/files/patch-base_system_sys__info.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-base_system_sys__info.h b/devel/electron29/files/patch-base_system_sys__info.h
new file mode 100644
index 000000000000..00bdacea5465
--- /dev/null
+++ b/devel/electron29/files/patch-base_system_sys__info.h
@@ -0,0 +1,20 @@
+--- base/system/sys_info.h.orig 2024-02-21 00:20:30 UTC
++++ base/system/sys_info.h
+@@ -318,6 +318,8 @@ class BASE_EXPORT SysInfo {
+ static void ResetCpuSecurityMitigationsEnabledForTesting();
+ #endif
+
++ static uint64_t MaxSharedMemorySize();
++
+ private:
+ friend class test::ScopedAmountOfPhysicalMemoryOverride;
+ FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory);
+@@ -330,7 +332,7 @@ class BASE_EXPORT SysInfo {
+ static HardwareInfo GetHardwareInfoSync();
+
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
+- BUILDFLAG(IS_AIX)
++ BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD)
+ static uint64_t AmountOfAvailablePhysicalMemory(
+ const SystemMemoryInfoKB& meminfo);
+ #endif