aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configure.ac4
-rw-r--r--src/zeroconf.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e5fd32fae..2e00d4bb9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -601,7 +601,7 @@ if test x$with_zeroconf != xno; then
if test x$with_zeroconf = xbonjour || test x$with_zeroconf = xauto; then
AC_CHECK_HEADER(dns_sd.h,
- [found_bonjour=1;AC_DEFINE(HAVE_BONJOUR, 1, [Define to enable Bonjour Zeroconf support])],
+ [found_bonjour=1;AC_DEFINE([HAVE_BONJOUR], 1, [Define to enable Bonjour Zeroconf support])],
[found_bonjour=0])
AC_CHECK_LIB(dns_sd, DNSServiceRegister,
MPD_LIBS="$MPD_LIBS -ldns_sd")
@@ -616,6 +616,8 @@ if test x$with_zeroconf != xno; then
if test x$with_zeroconf = xauto || test x$with_zeroconf = xno; then
AC_MSG_WARN([No supported Zeroconf backend found, disabling Zeroconf])
with_zeroconf=no
+ else
+ AC_DEFINE([HAVE_ZEROCONF], 1, [Define to enable Zeroconf support])
fi
fi
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>