summaryrefslogtreecommitdiffstats
path: root/main/qemu/musl-F_SHLCK-and-F_EXLCK.patch
blob: 92157a77644b34213763543aebffda069b1a8a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This patch was not upstreamed to qemu as those should probably be
defined in musl libc.

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c8989b6..00ed747 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -114,6 +114,13 @@ int __clone2(int (*fn)(void *), void *child_stack_base,
 
 #include "qemu.h"
 
+#ifndef F_SHLCK
+#define F_SHLCK 8
+#endif
+#ifndef F_EXLCK
+#define F_EXLCK 4
+#endif
+
 #define CLONE_NPTL_FLAGS2 (CLONE_SETTLS | \
     CLONE_PARENT_SETTID | CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID)