From acb63aaf41f42f3da970c21636ec0dfc06abcda0 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Sat, 9 Apr 2016 22:04:40 +0300 Subject: [PATCH] qemu: fix build without gnutls installed Move including of gnutls/gnutls.h in qemu/qemu_domain.c under the "ifdef WITH_GNUTLS" check because otherwise it fails like this: CC qemu/libvirt_driver_qemu_impl_la-qemu_domain.lo qemu/qemu_domain.c:50:10: fatal error: 'gnutls/gnutls.h' file not found in case if gnutls is not installed on the system. --- src/qemu/qemu_domain.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 30dee4df74..223154d820 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -47,9 +47,11 @@ #include "virprocess.h" #include "virrandom.h" #include "base64.h" -#include -#if HAVE_GNUTLS_CRYPTO_H -# include +#ifdef WITH_GNUTLS +# include +# if HAVE_GNUTLS_CRYPTO_H +# include +# endif #endif #include "logging/log_manager.h" #include "locking/domain_lock.h" -- GitLab