@samitouri / QOSamiQemu / commits / 69cf1ebaf5

tests/unit: Include 'qemu/main-loop.h' header in test-util-sockets.c

test-util-sockets.c calls qemu_init_main_loop(), itself declared in the "qemu/main-loop.h" header. Include the latter to avoid when refactoring unrelated headers: ../tests/unit/test-util-sockets.c:553:5: error: call to undeclared function 'qemu_init_main_loop' 553 | qemu_init_main_loop(&error_abort); | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20260812211708.92824-4-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Aug 12, 2026 at 11:19 UTC 69cf1ebaf569ee2c7df21153ac8b2f14e65710d8
1 file changed +1
tests/unit/test-util-sockets.c
+1
@@ -19,6 +19,7 @@
19 */
20
21 #include "qemu/osdep.h"
22 +#include "qemu/main-loop.h"
23 #include "qemu/sockets.h"
24 #include "qapi/error.h"
25 #include "socket-helpers.h"