diff --git a/src/daapd.h b/src/daapd.h index 759859c8..ccde6bc7 100644 --- a/src/daapd.h +++ b/src/daapd.h @@ -56,7 +56,4 @@ #endif -/* Event bases */ -extern struct event_base *evbase_main; - #endif /* _DAAPD_H_ */ diff --git a/src/mdns_avahi.c b/src/mdns_avahi.c index 560f76b7..37897b18 100644 --- a/src/mdns_avahi.c +++ b/src/mdns_avahi.c @@ -37,6 +37,10 @@ #include "err.h" #include "mdns_avahi.h" + +/* Main event base, from main.c */ +extern struct event_base *evbase_main; + static AvahiClient *mdns_client = NULL; static AvahiEntryGroup *mdns_group = NULL;