From 808b051a3e7bfc6e0d3667272842fe2cb61ab136 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 7 Dec 2021 23:21:07 +0100 Subject: [PATCH] sys: Fixed sockets compiling on MacOS --- plugins/libimhex/source/helpers/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libimhex/source/helpers/socket.cpp b/plugins/libimhex/source/helpers/socket.cpp index 725fd8daf..d80bec83a 100644 --- a/plugins/libimhex/source/helpers/socket.cpp +++ b/plugins/libimhex/source/helpers/socket.cpp @@ -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());