diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-21 22:10:25 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-21 22:10:25 +0800 |
commit | 51493afff8624177bd9e804b2f74474b59f7eebe (patch) | |
tree | f8e4fb5d303c355fd0215f7c8d5453070bbaef5f /mail/em-sync-stream.c | |
parent | e688c38b3b9b52e8c505862b5839b1e4b3b5e66d (diff) | |
download | gsoc2013-evolution-51493afff8624177bd9e804b2f74474b59f7eebe.tar.gz gsoc2013-evolution-51493afff8624177bd9e804b2f74474b59f7eebe.tar.zst gsoc2013-evolution-51493afff8624177bd9e804b2f74474b59f7eebe.zip |
em-camel-stream.c (em_camel_stream_init) Use
2005-12-21 Tor Lillqvist <tml@novell.com>
* em-camel-stream.c (em_camel_stream_init)
* em-sync-stream.c (em_sync_stream_init): Use
g_io_channel_win32_new_socket() on Win32 instead of
g_io_channel_unix_new() to avoid confusion between file
descriptors and sockets (which can and do overlap!). We know that
e_msgport_fd() returns a socket on Win32.
svn path=/trunk/; revision=30923
Diffstat (limited to 'mail/em-sync-stream.c')
-rw-r--r-- | mail/em-sync-stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/em-sync-stream.c b/mail/em-sync-stream.c index 2b18f782d9..d6654985c0 100644 --- a/mail/em-sync-stream.c +++ b/mail/em-sync-stream.c @@ -188,7 +188,11 @@ em_sync_stream_init (CamelObject *object) p->data_port = e_msgport_new(); p->reply_port = e_msgport_new(); +#ifndef G_OS_WIN32 p->gui_channel = g_io_channel_unix_new(e_msgport_fd(p->data_port)); +#else + p->gui_channel = g_io_channel_win32_new_socket(e_msgport_fd(p->data_port)); +#endif p->gui_watch = g_io_add_watch(p->gui_channel, G_IO_IN, emcs_gui_received, emss); #ifdef LOG_STREAM |