diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-10-12 05:25:07 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-10-12 05:25:07 +0000 |
commit | 816db53cd7065be83b07c1b1f10632e554f6aad7 (patch) | |
tree | 30c28511bb989c15519c09bbabb54735dc0f2a17 /libsylph | |
parent | fd95aa7de420c83de5a1144fddb7e5ab19fff50c (diff) |
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
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/imap.c | 5 |
1 files changed, 3 insertions, 2 deletions
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"), |