Fix build on Windows

master
Adam Honse 6 years ago
parent 2fe958783c
commit 119741b736

@ -63,7 +63,7 @@ void NetworkServer::StartServer()
if (WSAStartup(MAKEWORD(2, 2), &wsa) != NO_ERROR) if (WSAStartup(MAKEWORD(2, 2), &wsa) != NO_ERROR)
{ {
WSACleanup(); WSACleanup();
return false; return;
} }
#endif #endif

@ -36,6 +36,10 @@ protected:
std::thread * ConnectionThread; std::thread * ConnectionThread;
private: private:
#ifdef WIN32
WSADATA wsa;
#endif
SOCKET server_sock; SOCKET server_sock;
int accept_select(int sockfd, struct sockaddr *addr, socklen_t *addrlen); int accept_select(int sockfd, struct sockaddr *addr, socklen_t *addrlen);

Loading…
Cancel
Save