From: Yao Zi Date: Tue, 22 Oct 2024 12:29:30 +0000 (+0000) Subject: linux-user: Fix build failure caused by missing __u64 on musl X-Git-Tag: v9.2.0-rc0~36^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c12df59de99c7e7e79586cfe1ca4a8e50ff04cbc;p=thirdparty%2Fqemu.git linux-user: Fix build failure caused by missing __u64 on musl Commit 9651cead2f ("linux-user: add openat2 support in linux-user") ships a definition of struct open_how_ver0 while assuming type __u64 is available in code, which is not the case when building QEMU on musl. Let's replaces __u64 with uint64_t. Fixes: 9651cead2f ("linux-user: add openat2 support in linux-user") Signed-off-by: Yao Zi Reviewed-by: Laurent Vivier Message-ID: <20241022122929.17465-2-ziyao@disroot.org> Reviewed-by: Richard Henderson Signed-off-by: Richard Henderson --- diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 0ade83745e3..0e08dfae3e4 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2750,9 +2750,9 @@ struct target_sched_param { /* from kernel's include/uapi/linux/openat2.h */ struct open_how_ver0 { - __u64 flags; - __u64 mode; - __u64 resolve; + uint64_t flags; + uint64_t mode; + uint64_t resolve; }; struct target_open_how_ver0 { abi_ullong flags;