forked from pool/libvirt
53a4a5c7fa
have a gnutls that uses libgcrypt. OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=316
28 lines
895 B
Diff
28 lines
895 B
Diff
commit 843bdb2f8a3364637cda2911624149525188843f
|
|
Author: Jim Fehlig <jfehlig@suse.com>
|
|
Date: Mon Oct 21 23:12:22 2013 -0600
|
|
|
|
build: fix build of virt-login-shell on systems with older gnutls
|
|
|
|
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
|
|
|
|
Index: libvirt-1.1.2/config-post.h
|
|
===================================================================
|
|
--- libvirt-1.1.2.orig/config-post.h
|
|
+++ libvirt-1.1.2/config-post.h
|
|
@@ -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
|