@samitouri / QOSamiQemu / commits / 25780a68e3

monitor: Include missing 'qemu/coroutine-core.h' header

"monitor/monitor.h" declares monitor_set_cur() which use the 'Coroutine' type, itself declared in "qemu/coroutine-core.h". Include the latter to avoid when refactoring unrelated headers: In file included from ../../target/sh4/monitor.c:26: qemu/include/monitor/monitor.h:32:26: error: unknown type name 'Coroutine' 32 | Monitor *monitor_set_cur(Coroutine *co, Monitor *mon); | ^ Fixes: e69ee454b5f ("monitor: Make current monitor a per-coroutine property") Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20260812211708.92824-10-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Aug 12, 2026 at 11:16 UTC 25780a68e335d17ee068dcfcf49c5575ceae0591
1 file changed +1
include/monitor/monitor.h
+1
@@ -4,6 +4,7 @@
4 #include "block/block.h"
5 #include "qapi/qapi-types-misc.h"
6 #include "qapi/qapi-emit-events.h"
7 +#include "qemu/coroutine-core.h"
8 #include "qemu/readline.h"
9 #include "exec/hwaddr.h"
10 #include "qom/object.h"