Commit 5220c2c9 authored by Eric Wong's avatar Eric Wong

avahi: use #ifdef instead of #if because AVAHI may not be defined at all

git-svn-id: https://svn.musicpd.org/mpd/trunk@5259 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 2c01b285
......@@ -35,7 +35,7 @@
#define SERVICE_NAME "Music Player"
/* Here is the implementation for Avahi (http://avahi.org) Zeroconf support */
#if HAVE_AVAHI
#ifdef HAVE_AVAHI
#include <avahi-client/client.h>
#include <avahi-client/publish.h>
......@@ -477,7 +477,7 @@ void initZeroconf(void)
void finishZeroconf(void)
{
#if HAVE_AVAHI
#ifdef HAVE_AVAHI
DEBUG( "Avahi: Shutting down interface\n" );
deregisterIO( &avahiIo );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment