diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-03 04:54:31 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-03 04:54:31 -0500 |
commit | 76033d6ea82669a441290a19804b54e3892388a7 (patch) | |
tree | 4296076d60bcd864383468669d18e83e9ec453c6 /user/qemu/0001-linux-user-fix-build-with-musl-on-aarch64.patch | |
parent | c7b5a77ca52ce331d117cb8d5892277a487b95ce (diff) | |
download | packages-76033d6ea82669a441290a19804b54e3892388a7.tar.gz packages-76033d6ea82669a441290a19804b54e3892388a7.tar.bz2 packages-76033d6ea82669a441290a19804b54e3892388a7.tar.xz packages-76033d6ea82669a441290a19804b54e3892388a7.zip |
user/qemu: new package
Diffstat (limited to 'user/qemu/0001-linux-user-fix-build-with-musl-on-aarch64.patch')
-rw-r--r-- | user/qemu/0001-linux-user-fix-build-with-musl-on-aarch64.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/user/qemu/0001-linux-user-fix-build-with-musl-on-aarch64.patch b/user/qemu/0001-linux-user-fix-build-with-musl-on-aarch64.patch new file mode 100644 index 000000000..1bbae7dea --- /dev/null +++ b/user/qemu/0001-linux-user-fix-build-with-musl-on-aarch64.patch @@ -0,0 +1,31 @@ +From 806cb2ed28a16cf2894fabef034347f426f1d04e Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 15 Dec 2016 11:53:07 +0100 +Subject: [PATCH] linux-user: fix build with musl on aarch64 + +Use the standard uint64_t instead of internal __u64. + +This fixes compiler error with musl libc on aarch64: +.../qemu-2.7.0/linux-user/host/aarch64/hostdep.h:28:5: +error: unknown type name '__u64' + __u64 *pcreg = &uc->uc_mcontext.pc; + ^~~~~ + +Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> +--- + linux-user/host/aarch64/hostdep.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/linux-user/host/aarch64/hostdep.h b/linux-user/host/aarch64/hostdep.h +index 64f75cef49..6fd6e36b2a 100644 +--- a/linux-user/host/aarch64/hostdep.h ++++ b/linux-user/host/aarch64/hostdep.h +@@ -25,7 +25,7 @@ extern char safe_syscall_end[]; + static inline void rewind_if_in_safe_syscall(void *puc) + { + ucontext_t *uc = puc; +- __u64 *pcreg = &uc->uc_mcontext.pc; ++ uint64_t *pcreg = &uc->uc_mcontext.pc; + + if (*pcreg > (uintptr_t)safe_syscall_start + && *pcreg < (uintptr_t)safe_syscall_end) { |