[Libvir] [PATCH] Avoid compile failure when HAVE_AVAHI is not defined.
Jim Meyering
jim at meyering.net
Mon Dec 3 19:47:55 UTC 2007
Jim Meyering <jim at meyering.net> wrote:
> Without this patch, building without HAVE_AVAHI fails due to an unguarded
> use of mdns_name. Rather than adding yet another #ifdef..#endif (ugly
> and less maintainable), I've chosen to un-ifdef the declarations and
> a few uses. The more code that we compile and use unconditionally,
> the fewer surprises we'll encounter down the road.
>
> Mon Dec 3 14:24:20 CET 2007 Jim Meyering <meyering at redhat.com>
>
> Avoid compile failure when HAVE_AVAHI is not defined.
> * qemud/qemud.c (remoteReadConfigFile): Remove some of the
> "#ifdef HAVE_AVAHI" guards around uses of mdns_name and mdns_adv.
FYI, after some off-list discussion, there are no more objections
to this patch, so I've committed it.
More information about the libvir-list
mailing list