diff options
author | Hiroki Tagato <tagattie@FreeBSD.org> | 2021-11-24 17:28:24 +0900 |
---|---|---|
committer | Hiroki Tagato <tagattie@FreeBSD.org> | 2021-11-24 17:30:52 +0900 |
commit | 4da4f5edbf9de5c4269cf66d70044f4cb3abdc41 (patch) | |
tree | 21363ca7518a943c48bde3a669c78444685f832e /devel/electron13/files/patch-base_system_sys__info__posix.cc | |
parent | ports-mgmt/octopkg: update description and WWW (diff) |
devel/electron13: update to 13.6.2 (and rename from devel/electron12)
Changelog: https://www.electronjs.org/blog/electron-13-0
Diffstat (limited to 'devel/electron13/files/patch-base_system_sys__info__posix.cc')
-rw-r--r-- | devel/electron13/files/patch-base_system_sys__info__posix.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-base_system_sys__info__posix.cc b/devel/electron13/files/patch-base_system_sys__info__posix.cc new file mode 100644 index 000000000000..cc295253fdc0 --- /dev/null +++ b/devel/electron13/files/patch-base_system_sys__info__posix.cc @@ -0,0 +1,23 @@ +--- base/system/sys_info_posix.cc.orig 2021-07-15 19:13:29 UTC ++++ base/system/sys_info_posix.cc +@@ -26,6 +26,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 +@@ -239,6 +244,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"; + } |