From b43958ac926a9c2dd3c8511d05a0e0a40b87a71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 17 May 2021 12:59:41 +0200 Subject: irc: use constant GNUTLS_TLS1_3 only with GnuTLS >= 3.6.3 This constant was introduced in GnuTLS 3.6.3. This fixes a build error on these old distributions: - Debian Stretch - Debian Jessie - Ubuntu Bionic - Ubuntu Xenial --- src/plugins/irc/irc-bar-item.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index 9cf161e88..9e7d942c3 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -554,9 +554,11 @@ irc_bar_item_tls_version (const void *pointer, void *data, version = gnutls_protocol_get_version (server->gnutls_sess); switch (version) { +#if LIBGNUTLS_VERSION_NUMBER >= 0x030603 /* 3.6.3 */ case GNUTLS_TLS1_3: color = IRC_COLOR_ITEM_TLS_VERSION_OK; break; +#endif case GNUTLS_TLS1_2: color = IRC_COLOR_ITEM_TLS_VERSION_DEPRECATED; break; -- cgit v1.2.3