diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-23 01:11:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-23 01:12:22 -0700 |
commit | 49a8c8506a8477fd27ba924f14aa196e0d0813f9 (patch) | |
tree | 6f8d118d37bdc16b27e191fa61979eda79cb7b38 /lisp/emacs-lisp/regexp-opt.el | |
parent | 27988f136c35396e0ef1e865f5a0c0a0bf20358a (diff) | |
download | emacs-49a8c8506a8477fd27ba924f14aa196e0d0813f9.tar.gz emacs-49a8c8506a8477fd27ba924f14aa196e0d0813f9.tar.bz2 emacs-49a8c8506a8477fd27ba924f14aa196e0d0813f9.zip |
Get the Gnutls code compiling on Fedora 30
The recent changes caused the build to fail on Fedora 30 when built
with --enable-gcc-warnings, among other things with diagnostics that
gnutls_compression_get and gnutls_compression_get_name are deprecated
(this started with GnuTLS 3.6). Fix this by refusing to call these
obsolescent and now-dummy functions in GnuTLS 3.6 and later. However,
this is just a temporary workaround to get the build working; a real
fix is needed, as network-stream-tests fail.
* src/gnutls.c (HAVE_GNUTLS_COMPRESSION_GET): New macro.
(gnutls_compression_get, gnutls_compression_get_name):
Define only if HAVE_GNUTLS_COMPRESSION_GET.
(init_gnutls_functions): Load the two functions only if
HAVE_GNUTLS_COMPRESSION_GET.
(emacs_gnutls_certificate_export_pem): Use alloca instead of xmalloc.
(Fgnutls_peer_status): Just return "NULL" if the functions
are deprecated.
(Fgnutls_format_certificate): Fix pointer signedness glitches.
* src/process.c: Fix spacing.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions