aboutsummaryrefslogtreecommitdiff
path: root/www/qt6-webengine/files/patch-src_3rdparty_chromium_base_system_sys__info__posix.cc
blob: 7520de47f3c99bbabf1a169423d39c288454366f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- src/3rdparty/chromium/base/system/sys_info_posix.cc.orig	2023-03-28 19:45:02 UTC
+++ src/3rdparty/chromium/base/system/sys_info_posix.cc
@@ -182,12 +182,12 @@ absl::optional<int> NumberOfPhysicalProcessors() {
 
 }  // 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() {
@@ -277,6 +277,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";
   }
@@ -300,4 +302,4 @@ void SysInfo::SetIsCpuSecurityMitigationsEnabled(bool 
 
 #endif  // BUILDFLAG(IS_MAC)
 
-}  // namespace base
\ No newline at end of file
+}  // namespace base