From f60159e0222e79308ca7585c9ccef3ca5199685a Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 7 Sep 2021 19:44:57 +0200 Subject: [PATCH] chromium: add linux_stat definition for ppc64 --- .../xxx-ppc64le-sandbox-linux-stat.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/chromium/patches/xxx-ppc64le-sandbox-linux-stat.patch diff --git a/srcpkgs/chromium/patches/xxx-ppc64le-sandbox-linux-stat.patch b/srcpkgs/chromium/patches/xxx-ppc64le-sandbox-linux-stat.patch new file mode 100644 index 00000000000..4bfb5d494b0 --- /dev/null +++ b/srcpkgs/chromium/patches/xxx-ppc64le-sandbox-linux-stat.patch @@ -0,0 +1,31 @@ +--- a/sandbox/linux/system_headers/linux_stat.h ++++ b/sandbox/linux/system_headers/linux_stat.h +@@ -155,6 +155,28 @@ struct kernel_stat { + unsigned int __unused4; + unsigned int __unused5; + }; ++#elif defined(__powerpc64__) ++struct kernel_stat { ++ unsigned long st_dev; ++ unsigned long st_ino; ++ unsigned long st_nlink; ++ unsigned int st_mode; ++ unsigned int st_uid; ++ unsigned int st_gid; ++ unsigned long st_rdev; ++ long st_size; ++ unsigned long st_blksize; ++ unsigned long st_blocks; ++ unsigned long st_atime_; ++ unsigned long st_atime_nsec_; ++ unsigned long st_mtime_; ++ unsigned long st_mtime_nsec_; ++ unsigned long st_ctime_; ++ unsigned long st_ctime_nsec_; ++ unsigned long __unused4; ++ unsigned long __unused5; ++ unsigned long __unused6; ++}; + #endif + + // On 32-bit systems, we default to the 64-bit stat struct like libc