Commit 45a060ea authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fix windows build

parent 891d44e4
...@@ -1076,7 +1076,7 @@ static void on_ipv4_results(void *data, const char *name, struct addrinfo *ai_li ...@@ -1076,7 +1076,7 @@ static void on_ipv4_results(void *data, const char *name, struct addrinfo *ai_li
/* Convert v4mapped results to v4 */ /* Convert v4mapped results to v4 */
while (ai != NULL) { while (ai != NULL) {
if (ai->ai_family == AF_INET6) { if (ai->ai_family == AF_INET6) {
bctbx_sockaddr_ipv6_to_ipv4(ai->ai_addr, ai->ai_addr, &ai->ai_addrlen); bctbx_sockaddr_ipv6_to_ipv4(ai->ai_addr, ai->ai_addr, (socklen_t*)&ai->ai_addrlen);
if (ai->ai_addr->sa_family == AF_INET) ai->ai_family = AF_INET; if (ai->ai_addr->sa_family == AF_INET) ai->ai_family = AF_INET;
} }
ai = ai->ai_next; ai = ai->ai_next;
......
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