Commit 5ac4a3e1 authored by Mickaël Turnel's avatar Mickaël Turnel

Fix function not used when ENABLE_MDNS is not set

parent d6b09079
......@@ -341,6 +341,7 @@ static int srv_compare_prio(const void *psrv1, const void *psrv2){
return 1;
}
#ifdef HAVE_MDNS
static int srv_compare_host_and_port(const void *psrv1, const void *psrv2){
belle_sip_dns_srv_t *srv1=(belle_sip_dns_srv_t*)psrv1;
belle_sip_dns_srv_t *srv2=(belle_sip_dns_srv_t*)psrv2;
......@@ -350,6 +351,7 @@ static int srv_compare_host_and_port(const void *psrv1, const void *psrv2){
if (srv1->port == srv2->port) return 0;
return 1;
}
#endif
/*
* see https://www.ietf.org/rfc/rfc2782.txt
......
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