Commit b0ea9756 authored by Max Kellermann's avatar Max Kellermann

client: use GLib's win32 IO channel on WIN32

Use g_io_channel_win32_new_socket() instead of g_io_channel_unix_new() on WIN32.
parent 808a369c
......@@ -184,7 +184,12 @@ static void client_init(struct client *client, int fd)
client->bufferPos = 0;
client->fd = fd;
#ifndef G_OS_WIN32
client->channel = g_io_channel_unix_new(client->fd);
#else
client->channel = g_io_channel_win32_new_socket(client->fd);
#endif
client->source_id = g_io_add_watch(client->channel, G_IO_IN,
client_in_event, client);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment