diff --git a/src/network/TCPSocket.cpp b/src/network/TCPSocket.cpp index b097c6f..eadf3be 100644 --- a/src/network/TCPSocket.cpp +++ b/src/network/TCPSocket.cpp @@ -32,7 +32,7 @@ bool TCPSocket::Connect(const IPAddress& address, unsigned short port) { hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; - if (getaddrinfo(address.ToString().c_str(), std::to_string(port).c_str(), &hints, &result) != 0) { + if (::getaddrinfo(address.ToString().c_str(), std::to_string(port).c_str(), &hints, &result) != 0) { std::cerr << "Failed to get address info !\n"; return false; }