From 816db53cd7065be83b07c1b1f10632e554f6aad7 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 12 Oct 2012 05:25:07 +0000 Subject: libsylph/imap.c: fixed MSVC compilation (thanks to Gisle Vanem). git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3176 ee746299-78ed-0310-b773-934348b2243d --- libsylph/imap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libsylph') 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"), -- cgit v1.2.3