From 76f352690a7f9909f328e8873e06fb625ca4baa6 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 26 Feb 2013 16:43:03 -0700 Subject: [PATCH] build: don't use gcrypt.h without gnutls support Eugene Marcotte reported that if gcrypt-devel (a prereq of gnutls-devel) is not present, then compilation fails due to an unconditional use of . * src/libvirt.c (includes): Properly guard use of gcrypt.h. --- src/libvirt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 8a28e4a946..0a21deab3d 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -2,7 +2,7 @@ * libvirt.c: Main interfaces for the libvirt library to handle virtualization * domains from a process running in domain 0 * - * Copyright (C) 2005-2006, 2008-2012 Red Hat, Inc. + * Copyright (C) 2005-2006, 2008-2013 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -31,7 +31,6 @@ #include #include #include -#include #include #include @@ -56,6 +55,7 @@ #include "intprops.h" #include "virconf.h" #if WITH_GNUTLS +# include # include "rpc/virnettlscontext.h" #endif #include "vircommand.h"