diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-02 12:47:27 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-06-02 12:47:27 +0200 |
commit | 40ec612e731f0ebbf7a7121d0f542e1996c99da3 (patch) | |
tree | f2452ca97c3891a806b37a205202cbda3871f25b /src/plugins/irc/irc-server.c | |
parent | bd436db2bc061efc9821e7a5e1443ff32bd0b0d0 (diff) | |
download | weechat-40ec612e731f0ebbf7a7121d0f542e1996c99da3.zip |
Fix compilation bug when gnutls dev lib is not installed
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r-- | src/plugins/irc/irc-server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 9a727bac2..7c36bf550 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -25,6 +25,7 @@ #include <stdio.h> #include <stdarg.h> #include <string.h> +#include <time.h> #include <sys/socket.h> #include <sys/time.h> @@ -1967,7 +1968,11 @@ irc_server_connect (struct t_irc_server *server, int disable_autojoin) server->ports_array[server->current_address], server->sock, server->ipv6, +#ifdef HAVE_GNUTLS (server->ssl_connected) ? &server->gnutls_sess : NULL, +#else + NULL, +#endif server->local_hostname, irc_server_connect_cb, server); |