mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 13:46:16 +00:00
17 lines
652 B
Diff
17 lines
652 B
Diff
diff -uNr qemu-8.2.5/tcg/i386/tcg-target.c.inc qemu-8.2.5.mod/tcg/i386/tcg-target.c.inc
|
|
--- qemu-8.2.5/tcg/i386/tcg-target.c.inc 2024-06-10 20:19:05.000000000 +0300
|
|
+++ qemu-8.2.5.mod/tcg/i386/tcg-target.c.inc 2024-06-12 23:46:41.377731268 +0300
|
|
@@ -1938,7 +1938,11 @@
|
|
#if defined(__x86_64__) && defined(__linux__)
|
|
# include <asm/prctl.h>
|
|
# include <sys/prctl.h>
|
|
-int arch_prctl(int code, unsigned long addr);
|
|
+# include <linux/unistd.h>
|
|
+static int arch_prctl(int code, unsigned long addr)
|
|
+{
|
|
+ return syscall(__NR_arch_prctl, code, addr);
|
|
+}
|
|
static inline int setup_guest_base_seg(void)
|
|
{
|
|
if (arch_prctl(ARCH_SET_GS, guest_base) == 0) {
|