diff options
Diffstat (limited to 'devel/electron39/files/patch-base_system_sys__info__posix.cc')
| -rw-r--r-- | devel/electron39/files/patch-base_system_sys__info__posix.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron39/files/patch-base_system_sys__info__posix.cc b/devel/electron39/files/patch-base_system_sys__info__posix.cc new file mode 100644 index 000000000000..d44fba6a89df --- /dev/null +++ b/devel/electron39/files/patch-base_system_sys__info__posix.cc @@ -0,0 +1,29 @@ +--- base/system/sys_info_posix.cc.orig 2025-10-21 20:19:54 UTC ++++ base/system/sys_info_posix.cc +@@ -142,7 +142,7 @@ namespace base { + + namespace base { + +-#if !BUILDFLAG(IS_OPENBSD) ++#if !BUILDFLAG(IS_BSD) + // static + int SysInfo::NumberOfProcessors() { + #if BUILDFLAG(IS_MAC) +@@ -198,7 +198,7 @@ int SysInfo::NumberOfProcessors() { + + return cached_num_cpus; + } +-#endif // !BUILDFLAG(IS_OPENBSD) ++#endif // !BUILDFLAG(IS_BSD) + + // static + uint64_t SysInfo::AmountOfVirtualMemory() { +@@ -286,6 +286,8 @@ std::string SysInfo::OperatingSystemArchitecture() { + arch = "x86"; + } else if (arch == "amd64") { + arch = "x86_64"; ++ } else if (arch == "arm64") { ++ arch = "aarch64"; + } else if (std::string(info.sysname) == "AIX") { + arch = "ppc64"; + } |
