From 178e0df2c283fa00f0aa8df0e321b846d3d8d47f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 15 Jul 2017 14:03:44 +0300 Subject: [PATCH] Fix compilation of gnutls.c with older GnuTLS * src/gnutrls.c (syms_of_gnutls): Condition some defsubr's on HAVE_GNUTLS3, to avoid compilation errors when GnuTLS v3.X is not available. Reported by Colin Baxter . --- src/gnutls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gnutls.c b/src/gnutls.c index 0fc5d90c3ac..7dff0a4cddc 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -2518,6 +2518,7 @@ syms_of_gnutls (void) defsubr (&Sgnutls_peer_status); defsubr (&Sgnutls_peer_status_warning_describe); +#ifdef HAVE_GNUTLS3 defsubr (&Sgnutls_ciphers); defsubr (&Sgnutls_macs); defsubr (&Sgnutls_digests); @@ -2525,6 +2526,7 @@ syms_of_gnutls (void) defsubr (&Sgnutls_hash_digest); defsubr (&Sgnutls_symmetric_encrypt); defsubr (&Sgnutls_symmetric_decrypt); +#endif DEFVAR_INT ("gnutls-log-level", global_gnutls_log_level, doc: /* Logging level used by the GnuTLS functions. -- 2.39.2