Re: [PATCH] qemu: fix build without gnutls installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Cole Robinson wrote:

> On 04/09/2016 03:13 PM, Roman Bogorodskiy wrote:
> > 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 30dee4d..223154d 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 <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"
> > 
> 
> ACK

Pushed, thanks!

Roman Bogorodskiy

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]