Allow compilation on OSes without IPv6 support
This commit is contained in:
parent
bced126fdb
commit
3979dbd082
6 changed files with 37 additions and 14 deletions
|
|
@ -151,7 +151,7 @@ unsigned int LiTestClientConnectivity(const char* testServer, unsigned short ref
|
|||
goto Exit;
|
||||
}
|
||||
|
||||
((struct sockaddr_in6*)&address)->sin6_port = htons(LiGetPortFromPortFlagIndex(i));
|
||||
SET_PORT((LC_SOCKADDR*)&address, LiGetPortFromPortFlagIndex(i));
|
||||
if (LiGetProtocolFromPortFlagIndex(i) == IPPROTO_TCP) {
|
||||
// Initiate an asynchronous connection
|
||||
err = connect(sockets[i], (struct sockaddr*)&address, address_length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue