aboutsummaryrefslogtreecommitdiffstats
path: root/src/event_pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event_pipe.c')
-rw-r--r--src/event_pipe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event_pipe.c b/src/event_pipe.c
index f66dc86d6..5f69ee95c 100644
--- a/src/event_pipe.c
+++ b/src/event_pipe.c
@@ -89,7 +89,12 @@ void event_pipe_init(void)
if (ret < 0)
g_error("Couldn't open pipe: %s", strerror(errno));
+#ifndef G_OS_WIN32
channel = g_io_channel_unix_new(event_pipe[0]);
+#else
+ channel = g_io_channel_win32_new_fd(event_pipe[0]);
+#endif
+
event_pipe_source_id = g_io_add_watch(channel, G_IO_IN,
main_notify_event, NULL);
g_io_channel_unref(channel);