From: Markus Armbruster Date: Thu, 18 Mar 2021 15:55:16 +0000 (+0100) Subject: test-util-sockets: Add stub for monitor_set_cur() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=130d4824222cf062ed8ee3c5ab9fa2bd852b33b6;p=qemu.git test-util-sockets: Add stub for monitor_set_cur() Without this stub, the next commit fails to link. I suspect the real cause is 947e47448d "monitor: Use getter/setter functions for cur_mon". Cc: Kevin Wolf Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Message-Id: <20210318155519.1224118-9-armbru@redhat.com> --- diff --git a/tests/unit/test-util-sockets.c b/tests/unit/test-util-sockets.c index 67486055ed..72b9246529 100644 --- a/tests/unit/test-util-sockets.c +++ b/tests/unit/test-util-sockets.c @@ -73,6 +73,7 @@ int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp) * otherwise we get duplicate syms at link time. */ Monitor *monitor_cur(void) { return cur_mon; } +Monitor *monitor_set_cur(Coroutine *co, Monitor *mon) { abort(); } int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) { abort(); } #ifndef _WIN32