summary refs log tree commit diff stats
path: root/util/coroutine-wasm.c
diff options
context:
space:
mode:
authorKohei Tokunaga <ktokunaga.mail@gmail.com>2025-04-28 15:39:02 +0900
committerPaolo Bonzini <pbonzini@redhat.com>2025-05-06 16:02:04 +0200
commit208808242f8a34ac93e73c1c1dbafe4c00498f5e (patch)
tree934ec56b9cbf5a737f1297f25378338520814a4b /util/coroutine-wasm.c
parent45e82e495d6a9bf59ee80ed2d4c362596f1b559e (diff)
downloadfocaccia-qemu-208808242f8a34ac93e73c1c1dbafe4c00498f5e.tar.gz
focaccia-qemu-208808242f8a34ac93e73c1c1dbafe4c00498f5e.zip
block: Fix type conflict of the copy_file_range stub
Emscripten doesn't provide copy_file_range implementation but it declares
this function in its headers. Meson correctly detects the missing
implementation and unsets HAVE_COPY_FILE_RANGE. However, the stub defined in
file-posix.c causes a type conflict with the declaration from Emscripten
during compilation.

To fix this error, this commit updates the stub implementation in
file-posix.c to exactly match the declaration in Emscripten's headers. The
manpage also aligns with this signature.

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Link: https://lore.kernel.org/r/938d2beba15d4bd496a600ee401995fbaa385c62.1745820062.git.ktokunaga.mail@gmail.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/coroutine-wasm.c')
0 files changed, 0 insertions, 0 deletions