summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_system_sys__info__posix.cc
blob: 4f5d25393487f8789d9099e128ef3afa56c17793 (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
--- base/system/sys_info_posix.cc.orig	2021-03-12 23:57:15 UTC
+++ base/system/sys_info_posix.cc
@@ -25,6 +25,11 @@
 #if defined(OS_ANDROID)
 #include <sys/vfs.h>
 #define statvfs statfs  // Android uses a statvfs-like statfs struct and call.
+#elif defined(OS_BSD)
+#include <sys/param.h>
+#include <sys/mount.h>
+#define statvfs statfs
+#define f_frsize f_bsize
 #else
 #include <sys/statvfs.h>
 #endif
@@ -224,6 +229,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";
   }