aboutsummaryrefslogtreecommitdiff
blob: fb5ad597c79f24aee3b065dcbed050a59f6ad872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Copied from Alpine Linux

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)