fix building without gnuTLS support
authorPaul <paul@claws-mail.org>
Tue, 5 Aug 2014 06:20:59 +0000 (07:20 +0100)
committerPaul <paul@claws-mail.org>
Tue, 5 Aug 2014 06:20:59 +0000 (07:20 +0100)
src/etpan/imap-thread.c
src/etpan/nntp-thread.c

index 87effcc34d2f4fb7884af4cfac033da9d7094658..229f29e4167150ffd9648acae786fcfe0e1d200b 100644 (file)
@@ -523,7 +523,7 @@ int imap_threaded_connect(Folder * folder, const char * server, int port)
 
        return result.error;
 }
-
+#ifdef USE_GNUTLS
 static void connect_ssl_run(struct etpan_thread_op * op)
 {
        int r;
@@ -586,7 +586,7 @@ int imap_threaded_connect_ssl(Folder * folder, const char * server, int port)
 
        return result.error;
 }
-
+#endif
 struct capa_param {
        mailimap * imap;
 };
@@ -1053,7 +1053,7 @@ int imap_threaded_noop(Folder * folder, unsigned int * p_exists,
        return result.error;
 }
 
-
+#ifdef USE_GNUTLS
 struct starttls_result {
        int error;
 };
@@ -1126,8 +1126,7 @@ int imap_threaded_starttls(Folder * folder, const gchar *host, int port)
        }       
        return result.error;
 }
-
-
+#endif
 
 struct create_param {
        mailimap * imap;
index 1161dd1c9abbfadb22b83c8e29d70214b78e12e1..7d02b048b5830e473497eaf38dc4fa91759fb8c2 100644 (file)
@@ -377,7 +377,7 @@ int nntp_threaded_connect(Folder * folder, const char * server, int port)
        
        return result.error;
 }
-
+#ifdef USE_GNUTLS
 static void connect_ssl_run(struct etpan_thread_op * op)
 {
        int r;
@@ -439,6 +439,7 @@ int nntp_threaded_connect_ssl(Folder * folder, const char * server, int port)
        
        return result.error;
 }
+#endif
 
 void nntp_threaded_disconnect(Folder * folder)
 {