linux-user: Fix build failure caused by missing __u64 on musl
authorYao Zi <ziyao@disroot.org>
Tue, 22 Oct 2024 12:29:30 +0000 (12:29 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 22 Oct 2024 20:45:03 +0000 (13:45 -0700)
commitc12df59de99c7e7e79586cfe1ca4a8e50ff04cbc
treec2d9e646e13e0102a01f10a9aa2819784443f116
parentf769eb00b5d7475eded925a6b8b93f45d6bc05ea
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 <ziyao@disroot.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-ID: <20241022122929.17465-2-ziyao@disroot.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall_defs.h