• E
    build: fix build with newer gnutls · 7d21d6b6
    Eric Blake 提交于
    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: NEric Blake <eblake@redhat.com>
    7d21d6b6
configure.ac 85.4 KB