Skip to content

Commit 2c099bf

Browse files
authored
Fix build without dns-sd
1 parent 5231ef4 commit 2c099bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mgos_http_server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ static void mgos_http_ev(struct mg_connection *c, int ev, void *p,
212212
(void) user_data;
213213
}
214214

215+
#ifdef MGOS_HAVE_DNS_SD
215216
static bool add_extra_txt(struct mgos_dns_sd_txt_entry **txt, int *n,
216217
const char *extra_txt, char **text_temp) {
217218
*text_temp = strdup(extra_txt);
@@ -230,7 +231,6 @@ static bool add_extra_txt(struct mgos_dns_sd_txt_entry **txt, int *n,
230231
return true;
231232
}
232233

233-
#ifdef MGOS_HAVE_DNS_SD
234234
void mgos_http_server_publish_dns_sd(const char *extra_txt) {
235235
static char *s_instance = NULL;
236236
static uint16_t s_port = 0;

0 commit comments

Comments
 (0)