Skip to content
Snippets Groups Projects
Commit 5c30147d authored by deuce's avatar deuce
Browse files

Add #ifdefs around WSACleanup (Really, we want to call that here?)

parent 78a5bdf9
Branches
Tags
No related merge requests found
......@@ -111,7 +111,9 @@ const char* getHostNameByAddr(const char* str)
if((h=gethostbyaddr((char *)&ip,sizeof(ip),AF_INET))==NULL)
return NULL;
#ifdef _WIN32
WSACleanup();
#endif
return h->h_name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment