ws2_32: Fix FreeBSD compiling issue on ipx address structure.
This commit is contained in:
parent
b461fa4468
commit
281f69bccf
|
@ -1473,7 +1473,9 @@ static BOOL is_sockaddr_bound(const struct sockaddr *uaddr, int uaddrlen)
|
|||
{
|
||||
static const struct sockaddr_ipx emptyAddr;
|
||||
struct sockaddr_ipx *ipx = (struct sockaddr_ipx*) uaddr;
|
||||
return ipx->sipx_port || ipx->sipx_network || memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
|
||||
return ipx->sipx_port
|
||||
|| memcmp(&ipx->sipx_network, &emptyAddr.sipx_network, sizeof(emptyAddr.sipx_network))
|
||||
|| memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
|
||||
}
|
||||
#endif
|
||||
case AF_INET6:
|
||||
|
|
Loading…
Reference in New Issue