diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | libsylph/imap.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2012-10-12 + + * libsylph/imap.c: fixed MSVC compilation (thanks to Gisle Vanem). + 2012-10-10 * nsis/sylpheed.nsi diff --git a/libsylph/imap.c b/libsylph/imap.c index 1f48253e..11694f9b 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -2930,6 +2930,9 @@ static SockInfo *imap_open(const gchar *server, gushort port, SockInfo *sock = NULL; const gchar *server_; gushort port_; +#if USE_THREADS + gint conn_id; +#endif if (socks_info) { server_ = socks_info->proxy_host; @@ -2940,8 +2943,6 @@ static SockInfo *imap_open(const gchar *server, gushort port, } #if USE_THREADS - gint conn_id; - if ((conn_id = sock_connect_async_thread(server_, port_)) < 0 || sock_connect_async_thread_wait(conn_id, &sock) < 0) { log_warning(_("Can't connect to IMAP4 server: %s:%d\n"), |