aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-03 19:44:19 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-03 19:44:19 +0000
commitd5596a1cf09ba5f89ab59824de19d15fcaceb8aa (patch)
tree1107de6a7aacf6529952f53632ea12ad402d2bbd /src/zeroconf.c
parentab14f8a3c7a85c289ea8a664ba95a618aee59a67 (diff)
downloadmpd-d5596a1cf09ba5f89ab59824de19d15fcaceb8aa.tar.gz
mpd-d5596a1cf09ba5f89ab59824de19d15fcaceb8aa.tar.xz
mpd-d5596a1cf09ba5f89ab59824de19d15fcaceb8aa.zip
Define HAVE_ZEROCONF if Avahi or Bonjour support is enabled, so that we can
silence a warning about an unused variable without using stupid checks for HAVE_AVAHI || HAVE_BONJOUR. git-svn-id: https://svn.musicpd.org/mpd/trunk@6471 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/zeroconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c
index 7224f9688..539f482c7 100644
--- a/src/zeroconf.c
+++ b/src/zeroconf.c
@@ -40,8 +40,10 @@
static int zeroconfEnabled;
+#ifdef HAVE_ZEROCONF
static struct ioOps zeroConfIo = {
};
+#endif
#ifdef HAVE_BONJOUR
#include <dns_sd.h>