void-packages/srcpkgs/qemu/patches/musl-F_SHLCK-and-F_EXLCK.patch
2015-06-14 16:45:45 +02:00

20 lines
525 B
Diff

This patch was not upstreamed to qemu as those should probably be
defined in musl libc.
diff --git linux-user/syscall.c linux-user/syscall.c
index c8989b6..00ed747 100644
--- linux-user/syscall.c
+++ 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)