summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-16 22:33:36 -0300
committerTingPing <tngpng@gmail.com>2013-03-16 22:33:36 -0300
commit69e1ed42783ba9ef3c7f9acfc090ad53fb120476 (patch)
tree8d10c26c5e02011fe8702b80f574a8265c55c901 /src
parent12f0d0b304db64b766cfa29e7befe9b9aea04611 (diff)
fix fe-text on win32
It still throws out some errors
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/fe-text.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fe-text/fe-text.c b/src/fe-text/fe-text.c
index 6accaad0..451e9074 100644
--- a/src/fe-text/fe-text.c
+++ b/src/fe-text/fe-text.c
@@ -430,7 +430,14 @@ fe_input_add (int sok, int flags, void *func, void *data)
 	int tag, type = 0;
 	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);
+#endif
 
 	if (flags & FIA_READ)
 		type |= G_IO_IN | G_IO_HUP | G_IO_ERR;