File: mips64el-kernel_stat64.patch

package info (click to toggle)
qtwebengine-opensource-src 5.15.19%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,115,536 kB
  • sloc: cpp: 13,170,444; ansic: 4,254,580; javascript: 1,917,440; python: 554,859; asm: 532,901; xml: 496,623; java: 151,702; objc: 80,776; perl: 73,361; sh: 71,244; cs: 30,383; makefile: 21,992; yacc: 9,125; tcl: 8,500; php: 5,896; sql: 5,518; pascal: 4,510; lex: 2,884; lisp: 2,727; ruby: 559; awk: 200; sed: 40
file content (53 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Description: make sure kernel_stat64 struct is defined on mips64el
 kernel_stat64 is used only on 32-bit architectures, but it needs to be
 defined everywhere, otherwise the compilation fails with:
 .
 sandbox/linux/syscall_broker/broker_client.cc:194:28: error:
 invalid application of ‘sizeof’ to incomplete type ‘sandbox::syscall_broker::kernel_stat64’
Author: Dmitry Shachnev <mitya57@debian.org>
Forwarded: not-yet
Last-Update: 2021-11-26

--- a/src/3rdparty/chromium/sandbox/linux/system_headers/linux_stat.h
+++ b/src/3rdparty/chromium/sandbox/linux/system_headers/linux_stat.h
@@ -11,11 +11,7 @@
 #include "sandbox/linux/system_headers/linux_syscalls.h"
 
 #if defined(ARCH_CPU_MIPS_FAMILY)
-#if defined(ARCH_CPU_64_BITS)
-struct kernel_stat {
-#else
 struct kernel_stat64 {
-#endif
   unsigned st_dev;
   unsigned __pad0[3];
   unsigned long long st_ino;
@@ -109,6 +105,28 @@ struct kernel_stat {
   uint64_t st_ctime_nsec_;
   int64_t __unused4[3];
 };
+#elif (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS))
+struct kernel_stat {
+  unsigned st_dev;
+  unsigned __pad0[3];
+  unsigned long st_ino;
+  unsigned st_mode;
+  unsigned st_nlink;
+  unsigned st_uid;
+  unsigned st_gid;
+  unsigned st_rdev;
+  unsigned __pad1[3];
+  long st_size;
+  unsigned st_atime_;
+  unsigned st_atime_nsec_;
+  unsigned st_mtime_;
+  unsigned st_mtime_nsec_;
+  unsigned st_ctime_;
+  unsigned st_ctime_nsec_;
+  unsigned st_blksize;
+  unsigned __pad2;
+  unsigned long st_blocks;
+};
 #elif (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
 struct kernel_stat {
   unsigned st_dev;