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

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

 



Fix the build if HAVE_AVAHI is not defined.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxxxxxxxxxx>

---
 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

 #if HAVE_DBUS
     if (srv->sysbus)

--
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]