summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/breakpad/breakpad/0001-lss-Match-syscalls-to-match-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/breakpad/breakpad/0001-lss-Match-syscalls-to-match-musl.patch')
-rw-r--r--meta-oe/recipes-devtools/breakpad/breakpad/0001-lss-Match-syscalls-to-match-musl.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/breakpad/breakpad/0001-lss-Match-syscalls-to-match-musl.patch b/meta-oe/recipes-devtools/breakpad/breakpad/0001-lss-Match-syscalls-to-match-musl.patch
new file mode 100644
index 000000000..2b892ad64
--- /dev/null
+++ b/meta-oe/recipes-devtools/breakpad/breakpad/0001-lss-Match-syscalls-to-match-musl.patch
@@ -0,0 +1,45 @@
1From 5f7333e4f7b7485598bd71aa80967e1a16a7f901 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 14 Sep 2017 22:57:52 -0700
4Subject: [PATCH] lss: Match syscalls to match musl
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 linux_syscall_support.h | 3 +++
9 1 file changed, 3 insertions(+)
10
11Index: lss/linux_syscall_support.h
12===================================================================
13--- lss.orig/linux_syscall_support.h
14+++ lss/linux_syscall_support.h
15@@ -793,6 +793,9 @@ struct kernel_statfs {
16 #define FUTEX_TRYLOCK_PI_PRIVATE (FUTEX_TRYLOCK_PI | FUTEX_PRIVATE_FLAG)
17 #endif
18
19+#ifndef __NR_fstatat
20+#define __NR_fstatat __NR_fstatat64
21+#endif
22
23 #if defined(__x86_64__)
24 #ifndef ARCH_SET_GS
25@@ -924,6 +927,7 @@ struct kernel_statfs {
26 #ifndef __NR_fallocate
27 #define __NR_fallocate 324
28 #endif
29+
30 /* End of i386 definitions */
31 #elif defined(__ARM_ARCH_3__) || defined(__ARM_EABI__)
32 #ifndef __NR_setresuid
33@@ -1211,6 +1215,12 @@ struct kernel_statfs {
34 #ifndef __NR_fallocate
35 #define __NR_fallocate 285
36 #endif
37+#ifndef __NR_pread
38+#define __NR_pread __NR_pread64
39+#endif
40+#ifndef __NR_pwrite
41+#define __NR_pwrite __NR_pwrite64
42+#endif
43 /* End of x86-64 definitions */
44 #elif defined(__mips__)
45 #if _MIPS_SIM == _MIPS_SIM_ABI32