using namespace std is causing issues with bind, using :: to workaround for now until c++17 update
@@ -121,7 +121,7 @@ struct sockaddr_in address;
return false;
}
- if (bind(sock, (struct sockaddr *) &address, sizeof(address)) < 0) {
+ if (::bind(sock, (struct sockaddr *) &address, sizeof(address)) < 0) {
//close(sock);
sock=-1;
@@ -1582,7 +1582,7 @@ bool TCPServer::Open(int16 in_port, char* errbuf) {
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *) &reuse_addr, sizeof(reuse_addr));
#ifdef WIN32
closesocket(sock);
#else