Skip to content
Snippets Groups Projects
Commit 985be62d authored by Bin Meng's avatar Bin Meng Committed by Daniel P. Berrangé
Browse files

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: default avatarBin Meng <bin.meng@windriver.com>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent 926a895c
No related branches found
No related tags found
No related merge requests found
...@@ -285,11 +285,9 @@ GSource *qio_channel_create_socket_watch(QIOChannel *ioc, ...@@ -285,11 +285,9 @@ GSource *qio_channel_create_socket_watch(QIOChannel *ioc,
GSource *source; GSource *source;
QIOChannelSocketSource *ssource; QIOChannelSocketSource *ssource;
#ifdef WIN32
WSAEventSelect(socket, ioc->event, WSAEventSelect(socket, ioc->event,
FD_READ | FD_ACCEPT | FD_CLOSE | FD_READ | FD_ACCEPT | FD_CLOSE |
FD_CONNECT | FD_WRITE | FD_OOB); FD_CONNECT | FD_WRITE | FD_OOB);
#endif
source = g_source_new(&qio_channel_socket_source_funcs, source = g_source_new(&qio_channel_socket_source_funcs,
sizeof(QIOChannelSocketSource)); sizeof(QIOChannelSocketSource));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment