sys: Fixed sockets compiling on MacOS

This commit is contained in:
WerWolv 2021-12-07 23:21:07 +01:00
parent c55146a78c
commit 808b051a3e
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ namespace hex {
sockaddr_in client = { 0 };
client.sin_family = AF_INET;
client.sin_port = ::htons(port);
client.sin_port = htons(port);
#if defined(OS_WINDOWS)
client.sin_addr.S_un.S_addr = ::inet_addr(address.c_str());