mirror of
https://github.com/mii443/qemu.git
synced 2025-12-07 21:18:22 +00:00
migration: Teach it about G_SOURCE_REMOVE
As this is defined on glib 2.32, add compatibility macros for older glibs. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
@@ -154,7 +154,7 @@ static gboolean socket_accept_incoming_migration(QIOChannel *ioc,
|
||||
out:
|
||||
/* Close listening socket as its no longer needed */
|
||||
qio_channel_close(ioc, NULL);
|
||||
return FALSE; /* unregister */
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user