summaryrefslogtreecommitdiffstats
path: root/chromium/patches/008-fstatat64.patch
diff options
context:
space:
mode:
authorzorz <zorz@krypt.sh>2026-04-02 01:11:55 +0300
committerzorz <zorz@krypt.sh>2026-04-02 01:11:55 +0300
commit936433a5deb6ccc8f8476096f2c2b8dc72c33388 (patch)
treefe62acdddbfc42bc377383f5706f2c64120b942c /chromium/patches/008-fstatat64.patch
parent16d3c790c04095ea1c8488116f56719e5480efb7 (diff)
downloadzorz-936433a5deb6ccc8f8476096f2c2b8dc72c33388.tar.gz
zorz-936433a5deb6ccc8f8476096f2c2b8dc72c33388.tar.xz
chromium musl
Diffstat (limited to 'chromium/patches/008-fstatat64.patch')
-rw-r--r--chromium/patches/008-fstatat64.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/patches/008-fstatat64.patch b/chromium/patches/008-fstatat64.patch
new file mode 100644
index 0000000..1627ffa
--- /dev/null
+++ b/chromium/patches/008-fstatat64.patch
@@ -0,0 +1,17 @@
1fstatat64 is macrod to fstatat in sys/stat.h in musl- but then that fstatat is
2used in the _syscall4 macro mapping to __NR_$name, and __NR_fstatat is not
3defined anywhere here, as it wants the 64 name.
4
5so, just let it keep the name with an undef of the stat.h macro, then the macro
6expansion below evaluates correctly.
7--- a/third_party/lss/linux_syscall_support.h
8+++ b/third_party/lss/linux_syscall_support.h
9@@ -4947,7 +4947,8 @@
10 # endif
11 #endif
12 #if defined(__NR_fstatat64)
13+ #undef fstatat64
14 LSS_INLINE _syscall4(int, fstatat64, int, d,
15 const char *, p,
16 struct kernel_stat64 *, b, int, f)
17 #endif