[libvirt] [PATCH] gcrypt: fix build in case we do not use gnutls and gcrypt
Daniel P. Berrange
berrange at redhat.com
Thu Nov 3 14:13:00 UTC 2016
On Thu, Nov 03, 2016 at 04:14:34PM +0300, Olga Krishtal wrote:
> In case when we use any crypt library and gnutls make returns
> compilation errors.
>
> Signed-off-by: Olga Krishtal <okrishtal at virtuozzo.com>
> ---
> src/libvirt.c | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/src/libvirt.c b/src/libvirt.c
> index 52462e3..77365d1 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -269,7 +269,7 @@ virWinsockInit(void)
> }
> #endif
>
> -
> +#ifdef WITH_GNUTLS
> #ifdef WITH_GNUTLS_GCRYPT
This doesn't make much sense. The WITH_GNUTLS_GCRYPT should be defined
if-and-only-if WITH_GNUTLS is defined. If this isn't true, then we
need to fix configure, rather than adding in this extra ifdef check.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
More information about the libvir-list
mailing list