Commit 03f21712 authored by jehan's avatar jehan

fix macosx build issue

parent 990ce6bd
......@@ -113,10 +113,10 @@ static void resolve(void) {
ai = belle_sip_ip_address_to_addrinfo(IPV6_SIP_IP, peer_port);
if (ai) {
struct in6_addr *ipv6_address = &((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr;
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr32[0], ipv6_address->s6_addr32[0]);
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr32[1], ipv6_address->s6_addr32[1]);
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr32[2], ipv6_address->s6_addr32[2]);
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr32[3], ipv6_address->s6_addr32[3]);
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr[0], ipv6_address->s6_addr[0]);
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr[1], ipv6_address->s6_addr[1]);
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr[2], ipv6_address->s6_addr[2]);
CU_ASSERT_EQUAL(sock_in6->sin6_addr.s6_addr[3], ipv6_address->s6_addr[3]);
}
}
......
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