From 5c30147dbf0c9f480cc8c0957fab4cff8072356d Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 17 Aug 2009 16:51:02 +0000
Subject: [PATCH] Add #ifdefs around WSACleanup (Really, we want to call that
 here?)

---
 src/xpdev/netwrap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xpdev/netwrap.c b/src/xpdev/netwrap.c
index c1ea24c383..ff04c6f304 100644
--- a/src/xpdev/netwrap.c
+++ b/src/xpdev/netwrap.c
@@ -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;
 }
-- 
GitLab