[libvirt] [PATCH] Build: fix build if HAVE_AVAHI is not defined

Eric Blake eblake at redhat.com
Tue Jul 26 15:12:13 UTC 2011


On 07/26/2011 09:11 AM, Stefan Berger wrote:
> Fix the build if HAVE_AVAHI is not defined.
>
> Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
>
> ---
> src/rpc/virnetserver.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> Index: libvirt-acl/src/rpc/virnetserver.c
> ===================================================================
> --- libvirt-acl.orig/src/rpc/virnetserver.c
> +++ libvirt-acl/src/rpc/virnetserver.c
> @@ -783,7 +783,9 @@ void virNetServerFree(virNetServerPtr sr
> VIR_FREE(srv->clients);
>
> VIR_FREE(srv->mdnsGroupName);
> +#if HAVE_AVAHI
> virNetServerMDNSFree(srv->mdns);
> +#endif

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list