From: Kohei Tokunaga Date: Mon, 28 Apr 2025 06:39:01 +0000 (+0900) Subject: block: Add including of ioctl header for Emscripten build X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45e82e495d6a9bf59ee80ed2d4c362596f1b559e;p=thirdparty%2Fqemu.git block: Add including of ioctl header for Emscripten build Including is still required on Emscripten, just like on other platforms, to make the ioctl function available. Signed-off-by: Kohei Tokunaga Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Hajnoczi Link: https://lore.kernel.org/r/49b6ecdbd23ff83e3f191ef8a9f7cc2feeaea43f.1745820062.git.ktokunaga.mail@gmail.com Signed-off-by: Paolo Bonzini --- diff --git a/block/file-posix.c b/block/file-posix.c index 0d85123d0f..a845e2836f 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -110,6 +110,10 @@ #include #endif +#ifdef EMSCRIPTEN +#include +#endif + /* OS X does not have O_DSYNC */ #ifndef O_DSYNC #ifdef O_SYNC