From 9c4ae98d2e8430e95702b664c0612a64ae64f984 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 4 Dec 2009 18:09:50 +0100 Subject: Add missing #ifdef HAVE_GNUTLS --- src/plugins/irc/irc-server.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index a76abf4a5..669c4053d 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -2045,6 +2045,7 @@ irc_server_connect_cb (void *arg_server, int status, int gnutls_rc, weechat_prefix ("error"), IRC_PLUGIN_NAME, error); } +#ifdef HAVE_GNUTLS if (gnutls_rc == GNUTLS_E_DH_PRIME_UNACCEPTABLE) { weechat_printf (server->buffer, @@ -2056,6 +2057,9 @@ irc_server_connect_cb (void *arg_server, int status, int gnutls_rc, IRC_SERVER_OPTION_INTEGER (server, IRC_SERVER_OPTION_SSL_DHKEY_SIZE)); } +#else + (void) gnutls_rc; +#endif irc_server_close_connection (server); irc_server_switch_address (server); break; -- cgit v1.2.3