mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-04 22:11:52 +00:00
fix fe-text on win32
It still throws out some errors
This commit is contained in:
1 parent
12f0d0b304
commit
69e1ed4278
1 file changed
+7
@@ -430,7 +430,14 @@ fe_input_add (int sok, int flags, void *func, void *data)
|
|||||||
int tag, type = 0;
|
int tag, type = 0;
|
||||||
GIOChannel *channel;
|
GIOChannel *channel;
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
if (flags & FIA_FD)
|
||||||
|
channel = g_io_channel_win32_new_fd (sok);
|
||||||
|
else
|
||||||
|
channel = g_io_channel_win32_new_socket (sok);
|
||||||
|
#else
|
||||||
channel = g_io_channel_unix_new (sok);
|
channel = g_io_channel_unix_new (sok);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (flags & FIA_READ)
|
if (flags & FIA_READ)
|
||||||
type |= G_IO_IN | G_IO_HUP | G_IO_ERR;
|
type |= G_IO_IN | G_IO_HUP | G_IO_ERR;
|
||||||
|
|||||||
Reference in new issue
Block a user