aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-base_system_sys__info.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-base_system_sys__info.h')
-rw-r--r--devel/electron37/files/patch-base_system_sys__info.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-base_system_sys__info.h b/devel/electron37/files/patch-base_system_sys__info.h
new file mode 100644
index 000000000000..0803240653d5
--- /dev/null
+++ b/devel/electron37/files/patch-base_system_sys__info.h
@@ -0,0 +1,20 @@
+--- base/system/sys_info.h.orig 2025-04-22 20:15:27 UTC
++++ base/system/sys_info.h
+@@ -355,6 +355,8 @@ class BASE_EXPORT SysInfo {
+ static void ResetCpuSecurityMitigationsEnabledForTesting();
+ #endif
+
++ static uint64_t MaxSharedMemorySize();
++
+ private:
+ friend class test::ScopedAmountOfPhysicalMemoryOverride;
+ FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory);
+@@ -367,7 +369,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