]> xenbits.xensource.com Git - libvirt.git/commit
build: fix build with newer gnutls
authorEric Blake <eblake@redhat.com>
Wed, 29 May 2013 03:15:08 +0000 (21:15 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 29 May 2013 14:52:42 +0000 (08:52 -0600)
commit7d21d6b6975991c85e10aa4a9252286a0eb72bf2
treec6c730c98cdbb5e6a8da65c8a57e66efd28ec35a
parent6c89768da43946647807509f7a39431da1ddaba4
build: fix build with newer gnutls

Building with gnutls 3.2.0 (such as shipped with current cygwin) fails
with:

rpc/virnettlscontext.c: In function 'virNetTLSSessionGetKeySize':
rpc/virnettlscontext.c:1358:5: error: implicit declaration of function 'gnutls_cipher_get_key_size' [-Wimplicit-function-declaration]

Yeah, it's stupid that gnutls broke API by moving their declaration
into a new header without including that header from the old one,
but it's easy enough to work around, all without breaking on gnutls
1.4.1 (hello RHEL 5) that lacked the new header.

* configure.ac (gnutls): Check for <gnutls/crypto.h>.
* src/rpc/virnettlscontext.c (includes): Include additional header.

Signed-off-by: Eric Blake <eblake@redhat.com>
configure.ac
src/rpc/virnettlscontext.c