ports/www/iridium/files/patch-base_system_sys__info__posix.cc
2025-03-19 09:55:06 +01:00

29 lines
805 B
C++

--- base/system/sys_info_posix.cc.orig 2025-03-18 16:46:04 UTC
+++ base/system/sys_info_posix.cc
@@ -124,7 +124,7 @@ bool GetDiskSpaceInfo(const base::FilePath& path,
namespace base {
-#if !BUILDFLAG(IS_OPENBSD)
+#if !BUILDFLAG(IS_BSD)
// static
int SysInfo::NumberOfProcessors() {
#if BUILDFLAG(IS_MAC)
@@ -180,7 +180,7 @@ int SysInfo::NumberOfProcessors() {
return cached_num_cpus;
}
-#endif // !BUILDFLAG(IS_OPENBSD)
+#endif // !BUILDFLAG(IS_BSD)
// static
uint64_t SysInfo::AmountOfVirtualMemory() {
@@ -268,6 +268,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";
}