mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 04:19:17 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/310ca30e-a951-11ed-8314-a8a1599412c6.html
26 lines
774 B
C++
26 lines
774 B
C++
--- base/system/sys_info_posix.cc.orig 2023-02-08 09:03:45 UTC
|
|
+++ base/system/sys_info_posix.cc
|
|
@@ -159,12 +159,12 @@ int NumberOfProcessors() {
|
|
|
|
} // namespace internal
|
|
|
|
-#if !BUILDFLAG(IS_OPENBSD)
|
|
+#if !BUILDFLAG(IS_BSD)
|
|
int SysInfo::NumberOfProcessors() {
|
|
static int number_of_processors = internal::NumberOfProcessors();
|
|
return number_of_processors;
|
|
}
|
|
-#endif // !BUILDFLAG(IS_OPENBSD)
|
|
+#endif // !BUILDFLAG(IS_BSD)
|
|
|
|
// static
|
|
uint64_t SysInfo::AmountOfVirtualMemory() {
|
|
@@ -254,6 +254,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";
|
|
}
|