提交 acb63aaf 编写于 作者: R Roman Bogorodskiy

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.
上级 ec5b9331
...@@ -47,9 +47,11 @@ ...@@ -47,9 +47,11 @@
#include "virprocess.h" #include "virprocess.h"
#include "virrandom.h" #include "virrandom.h"
#include "base64.h" #include "base64.h"
#include <gnutls/gnutls.h> #ifdef WITH_GNUTLS
#if HAVE_GNUTLS_CRYPTO_H # include <gnutls/gnutls.h>
# include <gnutls/crypto.h> # if HAVE_GNUTLS_CRYPTO_H
# include <gnutls/crypto.h>
# endif
#endif #endif
#include "logging/log_manager.h" #include "logging/log_manager.h"
#include "locking/domain_lock.h" #include "locking/domain_lock.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册