[sylpheed:35471] libsylph/imap.c + MSVC
Gisle Vanem
gvanem at broadpark.no
Thu Oct 11 23:34:58 JST 2012
The 'conn_id' in ./libsylph/imap.c must be at the top.
Or should the MSVC compilation need to treat the soures as
C++? A small patch:
--- libsylph\imap.c 2012-10-10 21:19:35.531250000 +0200
+++ ..\libsylph\imap.c 2012-10-11 16:30:57.687500000 +0200
@@ -2930,6 +2930,9 @@
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 @@
}
#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"),
--gv
More information about the Sylpheed
mailing list