From af413dc78149c831a099c3c15b6899d9a30c46c6 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Fri, 24 Sep 2021 20:24:59 +0200 Subject: [PATCH] fix: prefixed addrinfo --- src/network/TCPSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }