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 <m43cap@yandex.com>.
This commit is contained in:
Eli Zaretskii 2017-07-15 14:03:44 +03:00
parent 011dfceae3
commit 178e0df2c2

View file

@ -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.