Skip to content

Commit

Permalink
Include the mdns_external interface even if avahi is not included.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Feb 4, 2019
1 parent 550f22a commit d540254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#ifdef CONFIG_AVAHI
extern mdns_backend mdns_avahi;
extern mdns_backend mdns_external_avahi;
#endif
#ifdef CONFIG_DNS_SD
extern mdns_backend mdns_dns_sd;
Expand All @@ -43,11 +42,11 @@ extern mdns_backend mdns_external_dns_sd;
#ifdef CONFIG_TINYSVCMDNS
extern mdns_backend mdns_tinysvcmdns;
#endif
extern mdns_backend mdns_external_avahi;

static mdns_backend *mdns_backends[] = {
#ifdef CONFIG_AVAHI
&mdns_avahi,
&mdns_external_avahi,
#endif
#ifdef CONFIG_DNS_SD
&mdns_dns_sd,
Expand All @@ -56,6 +55,7 @@ static mdns_backend *mdns_backends[] = {
#ifdef CONFIG_TINYSVCMDNS
&mdns_tinysvcmdns,
#endif
&mdns_external_avahi,
NULL};

void mdns_register(void) {
Expand Down

0 comments on commit d540254

Please sign in to comment.