diff options
Diffstat (limited to 'www/chromium/patches/patch-base_system_sys_info_posix_cc')
| -rw-r--r-- | www/chromium/patches/patch-base_system_sys_info_posix_cc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/www/chromium/patches/patch-base_system_sys_info_posix_cc b/www/chromium/patches/patch-base_system_sys_info_posix_cc deleted file mode 100644 index 4befd62..0000000 --- a/www/chromium/patches/patch-base_system_sys_info_posix_cc +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | Index: base/system/sys_info_posix.cc | ||
| 2 | --- base/system/sys_info_posix.cc.orig | ||
| 3 | +++ base/system/sys_info_posix.cc | ||
| 4 | @@ -37,7 +37,7 @@ | ||
| 5 | |||
| 6 | namespace { | ||
| 7 | |||
| 8 | -#if !BUILDFLAG(IS_OPENBSD) | ||
| 9 | +#if !BUILDFLAG(IS_BSD) | ||
| 10 | int NumberOfProcessors() { | ||
| 11 | // sysconf returns the number of "logical" (not "physical") processors on both | ||
| 12 | // Mac and Linux. So we get the number of max available "logical" processors. | ||
| 13 | @@ -77,7 +77,7 @@ int NumberOfProcessors() { | ||
| 14 | |||
| 15 | base::LazyInstance<base::internal::LazySysInfoValue<int, NumberOfProcessors>>:: | ||
| 16 | Leaky g_lazy_number_of_processors = LAZY_INSTANCE_INITIALIZER; | ||
| 17 | -#endif // !BUILDFLAG(IS_OPENBSD) | ||
| 18 | +#endif // !BUILDFLAG(IS_BSD) | ||
| 19 | |||
| 20 | int64_t AmountOfVirtualMemory() { | ||
| 21 | struct rlimit limit; | ||
| 22 | @@ -143,11 +143,11 @@ bool GetDiskSpaceInfo(const base::FilePath& path, | ||
| 23 | |||
| 24 | namespace base { | ||
| 25 | |||
| 26 | -#if !BUILDFLAG(IS_OPENBSD) | ||
| 27 | +#if !BUILDFLAG(IS_BSD) | ||
| 28 | int SysInfo::NumberOfProcessors() { | ||
| 29 | return g_lazy_number_of_processors.Get().value(); | ||
| 30 | } | ||
| 31 | -#endif // !BUILDFLAG(IS_OPENBSD) | ||
| 32 | +#endif // !BUILDFLAG(IS_BSD) | ||
| 33 | |||
| 34 | // static | ||
| 35 | int64_t SysInfo::AmountOfVirtualMemory() { | ||
| 36 | @@ -239,6 +239,8 @@ std::string SysInfo::OperatingSystemArchitecture() { | ||
| 37 | arch = "x86"; | ||
| 38 | } else if (arch == "amd64") { | ||
| 39 | arch = "x86_64"; | ||
| 40 | + } else if (arch == "arm64") { | ||
| 41 | + arch = "aarch64"; | ||
| 42 | } else if (std::string(info.sysname) == "AIX") { | ||
| 43 | arch = "ppc64"; | ||
| 44 | } | ||
