mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
Make copy_file_range non-static on GNU/Hurd
glibc has a stubs mechanism: a function can be declared in the system headers, but only implemented as a stub that always fails with ENOSYS, for example. Therefore when implementing this function we cannot use static. Signed-off-by: Damien Zammit <damien@zamaudio.com> Link: https://lore.kernel.org/r/20260208055858.2166524-6-damien@zamaudio.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
9c5fbd478f
commit
aa744e614a
@@ -2091,7 +2091,7 @@ static int handle_aiocb_write_zeroes_unmap(void *opaque)
|
||||
}
|
||||
|
||||
#ifndef HAVE_COPY_FILE_RANGE
|
||||
#ifndef EMSCRIPTEN
|
||||
#if !defined(EMSCRIPTEN) && !defined(__GNU__)
|
||||
static
|
||||
#endif
|
||||
ssize_t copy_file_range(int in_fd, off_t *in_off, int out_fd,
|
||||
|
||||
Reference in New Issue
Block a user