Commit 9daabd3d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix build on Mac OS X.

parent f0ac8d55
......@@ -1238,6 +1238,8 @@ void bctbx_sockaddr_remove_nat64_mapping(const struct sockaddr *v6, struct socka
#ifdef _MSC_VER
if ((((in6->sin6_addr.u.Word[0] << 16) & in6->sin6_addr.u.Word[1]) == htonl(0x0064))
&& (((in6->sin6_addr.u.Word[2] << 16) & in6->sin6_addr.u.Word[3]) == htonl(0xff9b))) {
#elif __APPLE__
if ((in6->sin6_addr.__u6_addr.__u6_addr32[0] == htonl(0x0064)) && (in6->sin6_addr.__u6_addr.__u6_addr32[1] == htonl(0xff9b))) {
#else
if ((in6->sin6_addr.s6_addr32[0] == htonl(0x0064)) && (in6->sin6_addr.s6_addr32[1] == htonl(0xff9b))) {
#endif
......
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