[PATCH] virgdbusmock: Mock g_dbus_connection_call_with_unix_fd_list_sync() only on UNIX-like systems

Ján Tomko jtomko at redhat.com
Fri Sep 30 12:40:33 UTC 2022


On a Thursday in 2022, Michal Privoznik wrote:
>The g_dbus_connection_call_with_unix_fd_list_sync() function is
>not defined always, only when G_OS_UNIX condition is set. This is

As of GLib commit c9874f817be51d3b652457daef3b10766b59db9a, relesed
in GLib 2.73, the g_dbus_connection...

>also the reason why our virGDBusCallMethodWithFD() function is
>guarded with that macro. But virgdbusmock is compiled always,
>even on !UNIX systems, e.g. mingw. Therefore, we need to use the
>same macro to condition compile its mock.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> tests/virgdbusmock.c | 2 ++
> 1 file changed, 2 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano


More information about the libvir-list mailing list