diff options
author | Bin Meng | 2022-10-06 17:19:23 +0200 |
---|---|---|
committer | Daniel P. Berrangé | 2022-10-26 14:32:08 +0200 |
commit | 985be62d4481e11830485a25a47a932e5829d223 (patch) | |
tree | 9ad2c03cc9da05be6228bd3ada0a82489dad6189 /io | |
parent | util/qemu-sockets: Use g_get_tmp_dir() to get the directory for temporary files (diff) | |
download | qemu-985be62d4481e11830485a25a47a932e5829d223.tar.gz qemu-985be62d4481e11830485a25a47a932e5829d223.tar.xz qemu-985be62d4481e11830485a25a47a932e5829d223.zip |
io/channel-watch: Drop a superfluous '#ifdef WIN32'
In the win32 version qio_channel_create_socket_watch() body there is
no need to do a '#ifdef WIN32'.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'io')
-rw-r--r-- | io/channel-watch.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/io/channel-watch.c b/io/channel-watch.c index 0289b3647c..89f3c8a88a 100644 --- a/io/channel-watch.c +++ b/io/channel-watch.c @@ -285,11 +285,9 @@ GSource *qio_channel_create_socket_watch(QIOChannel *ioc, GSource *source; QIOChannelSocketSource *ssource; -#ifdef WIN32 WSAEventSelect(socket, ioc->event, FD_READ | FD_ACCEPT | FD_CLOSE | FD_CONNECT | FD_WRITE | FD_OOB); -#endif source = g_source_new(&qio_channel_socket_source_funcs, sizeof(QIOChannelSocketSource)); |