Differential D22184 Diff 64134 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_system_sys__info__posix.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_system_sys__info__posix.cc
Show All 21 Lines | |||||
namespace base { | namespace base { | ||||
-#if !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) | -#if !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) | ||||
+#if !defined(OS_BSD) && !defined(OS_FUCHSIA) | +#if !defined(OS_BSD) && !defined(OS_FUCHSIA) | ||||
int SysInfo::NumberOfProcessors() { | int SysInfo::NumberOfProcessors() { | ||||
return g_lazy_number_of_processors.Get().value(); | return g_lazy_number_of_processors.Get().value(); | ||||
} | } | ||||
@@ -225,6 +225,8 @@ std::string SysInfo::OperatingSystemArchitecture() { | @@ -225,7 +225,9 @@ std::string SysInfo::OperatingSystemArchitecture() { | ||||
arch = "x86"; | arch = "x86"; | ||||
} else if (arch == "amd64") { | } else if (arch == "amd64") { | ||||
arch = "x86_64"; | arch = "x86_64"; | ||||
- } else if (std::string(info.sysname) == "AIX") { | |||||
+ } else if (arch == "arm64") { | + } else if (arch == "arm64") { | ||||
+ arch = "aarch64"; | + arch = "aarch64"; | ||||
} else if (std::string(info.sysname) == "AIX") { | + } else if (arch == "powerpc" || arch == "powerpc64") { | ||||
arch = "ppc64"; | arch = "ppc64"; | ||||
} | } | ||||
return arch; |