]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix build of virt-login-shell on systems with older gnutls
authorJim Fehlig <jfehlig@suse.com>
Tue, 22 Oct 2013 05:12:22 +0000 (23:12 -0600)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 23 Oct 2013 08:02:38 +0000 (09:02 +0100)
On systems where gnutls uses libgcrypt, I'm seeing the following
build failure

libvirt.c:314: error: variable 'virTLSThreadImpl' has initializer but incomplete type
libvirt.c:319: error: 'GCRY_THREAD_OPTION_PTHREAD' undeclared here (not in a function)
...

Fix by undefining WITH_GNUTLS_GCRYPT in config-post.h

config-post.h

index d371e8c6cc97794907d981ab45187de82d6e0b84..8367200f9c02b9f21cb0fce62405dd182f8ebcf3 100644 (file)
@@ -34,6 +34,7 @@
 # undef WITH_CURL
 # undef WITH_DTRACE_PROBES
 # undef WITH_GNUTLS
+# undef WITH_GNUTLS_GCRYPT
 # undef WITH_MACVTAP
 # undef WITH_NUMACTL
 # undef WITH_SASL