ports/www/chromium/patches/patch-base_system_sys_info_h

22 lines
747 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: base/system/sys_info.h
--- base/system/sys_info.h.orig
+++ base/system/sys_info.h
2023-08-18 18:38:43 +00:00
@@ -261,6 +261,8 @@ class BASE_EXPORT SysInfo {
static void ResetCpuSecurityMitigationsEnabledForTesting();
2023-08-16 22:26:55 +00:00
#endif
+ static uint64_t MaxSharedMemorySize();
+
private:
friend class test::ScopedAmountOfPhysicalMemoryOverride;
FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory);
2023-08-18 18:38:43 +00:00
@@ -273,7 +275,7 @@ class BASE_EXPORT SysInfo {
2023-08-16 22:26:55 +00:00
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