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.
This commit is contained in:
Roman Bogorodskiy 2016-04-09 22:04:40 +03:00
parent ec5b9331c4
commit acb63aaf41
1 changed files with 5 additions and 3 deletions

View File

@ -47,9 +47,11 @@
#include "virprocess.h"
#include "virrandom.h"
#include "base64.h"
#include <gnutls/gnutls.h>
#if HAVE_GNUTLS_CRYPTO_H
# include <gnutls/crypto.h>
#ifdef WITH_GNUTLS
# include <gnutls/gnutls.h>
# if HAVE_GNUTLS_CRYPTO_H
# include <gnutls/crypto.h>
# endif
#endif
#include "logging/log_manager.h"
#include "locking/domain_lock.h"