Re: [PATCH 02/10] various: Define macros for dependencies on emscripten

2025-04-11 Thread Kohei Tokunaga
Hi Paolo, > > +#ifdef EMSCRIPTEN > > +/* > > + * emscripten exposes copy_file_range declaration but doesn't provide the > > + * implementation in the final link. Define the stub here but avoid type > > + * conflict with the emscripten's header. > > + */ > > +ssize_t copy_file_range(int in_fd, off_

Re: [PATCH 02/10] various: Define macros for dependencies on emscripten

2025-04-10 Thread Paolo Bonzini
On 4/7/25 16:45, Kohei Tokunaga wrote: +#ifdef EMSCRIPTEN +/* + * emscripten exposes copy_file_range declaration but doesn't provide the + * implementation in the final link. Define the stub here but avoid type + * conflict with the emscripten's header. + */ +ssize_t copy_file_range(int in_fd, of

[PATCH 02/10] various: Define macros for dependencies on emscripten

2025-04-07 Thread Kohei Tokunaga
Signed-off-by: Kohei Tokunaga --- block/file-posix.c| 18 ++ include/qemu/cacheflush.h | 3 ++- os-posix.c| 5 + util/cacheflush.c | 3 ++- 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.