summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-pread-pwrite.patch
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2021-08-04 20:01:39 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2021-08-04 22:11:09 +0200
commit2a38fca150f065f869ed530fffe1a07beec80692 (patch)
treed3c7001196a3a0b85d1e318c6cfd341252c5f3ee /recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-pread-pwrite.patch
parentd99b14febfc1193d8ae11e70f5754c800fdb9bbb (diff)
downloadmeta-qt5-upstream/master-next.tar.gz
qtwebengine: fix build with glibc-2.34upstream/master-nextupstream/masterupstream/jansa/master
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-pread-pwrite.patch')
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-pread-pwrite.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-pread-pwrite.patch b/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-pread-pwrite.patch
new file mode 100644
index 00000000..f9fd76f4
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-pread-pwrite.patch
@@ -0,0 +1,32 @@
1From c4178e519cebec88088ff24bb7daa13a21049d85 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 23 Dec 2018 16:58:04 -0800
4Subject: [PATCH] chromium: musl: pread pwrite
5
6Redefine pread/pwrite in terms of 64bit variants on musl
7since 32bit variants don't exist and aliases are not defined in
8libc either
9
10Upstream-Status: Submitted [https://codereview.chromium.org/1743093002/]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 chromium/third_party/lss/linux_syscall_support.h | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16diff --git a/chromium/third_party/lss/linux_syscall_support.h b/chromium/third_party/lss/linux_syscall_support.h
17index e4ac22644c0..f56203ccce4 100644
18--- a/chromium/third_party/lss/linux_syscall_support.h
19+++ b/chromium/third_party/lss/linux_syscall_support.h
20@@ -1258,6 +1258,12 @@ struct kernel_statfs {
21 #ifndef __NR_getrandom
22 #define __NR_getrandom 318
23 #endif
24+
25+#undef __NR_pread
26+#define __NR_pread __NR_pread64
27+#undef __NR_pwrite
28+#define __NR_pwrite __NR_pwrite64
29+
30 /* End of x86-64 definitions */
31 #elif defined(__mips__)
32 #if _MIPS_SIM == _MIPS_SIM_ABI32