summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine/0009-Match-syscalls-to-match-musl.patch
blob: bfb6ebb69c0d9f8747ec646b869df27adc95956f (plain)
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
From 5843df01580b0fb956ee4b7e1a60c0130c8c90f9 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 7 Jul 2017 15:24:49 -0700
Subject: [PATCH 09/12] Match syscalls to match musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 third_party/lss/linux_syscall_support.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/third_party/lss/linux_syscall_support.h b/third_party/lss/linux_syscall_support.h
index 9dbd2391b..a715de177 100644
--- a/third_party/lss/linux_syscall_support.h
+++ b/third_party/lss/linux_syscall_support.h
@@ -793,6 +793,14 @@ struct kernel_statfs {
 #endif
 
 
+#undef stat64
+#undef fstat64
+
+#ifndef __NR_fstatat
+#define __NR_fstatat __NR_fstatat64
+#endif
+
+
 #if defined(__x86_64__)
 #ifndef ARCH_SET_GS
 #define ARCH_SET_GS             0x1001
@@ -1210,6 +1218,14 @@ struct kernel_statfs {
 #ifndef __NR_fallocate
 #define __NR_fallocate          285
 #endif
+
+#ifndef __NR_pread
+#define __NR_pread __NR_pread64
+#endif
+#ifndef __NR_pwrite
+#define __NR_pwrite __NR_pwrite64
+#endif
+
 /* End of x86-64 definitions                                                 */
 #elif defined(__mips__)
 #if _MIPS_SIM == _MIPS_SIM_ABI32
-- 
2.13.2