From 2c7f80e73aa2de65dd92ad3f0d7c7be9dcf7048a Mon Sep 17 00:00:00 2001
Message-Id: <2c7f80e73aa2de65dd92ad3f0d7c7be9dcf7048a.1383321464.git.jdenemar@redhat.com>
From: Jim Fehlig <jfehlig@suse.com>
Date: Wed, 30 Oct 2013 17:01:46 +0000
Subject: [PATCH] build: fix build of virt-login-shell on systems with older
gnutls
For
https://bugzilla.redhat.com/show_bug.cgi?id=1015247
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
(cherry picked from commit 843bdb2f8a3364637cda2911624149525188843f)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
config-post.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/config-post.h b/config-post.h
index d371e8c..8367200 100644
--- a/config-post.h
+++ b/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
--
1.8.4.2