Commit ac8eac2f6632de6215d970b77b420601cedd6a91

Tim Clem 2012-06-15T11:25:52

Fix compile errors when building on windows Errors were due to not including winsock2 early enough.

diff --git a/src/common.h b/src/common.h
index e2a3002..419a8d0 100644
--- a/src/common.h
+++ b/src/common.h
@@ -24,6 +24,7 @@
 
 # include <io.h>
 # include <direct.h>
+# include <winsock2.h>
 # include <windows.h>
 # include "win32/msvc-compat.h"
 # include "win32/mingw-compat.h"
diff --git a/src/netops.c b/src/netops.c
index e6f3e56..3255474 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -12,7 +12,6 @@
 #	include <netdb.h>
 #       include <arpa/inet.h>
 #else
-#	include <winsock2.h>
 #	include <ws2tcpip.h>
 #	ifdef _MSC_VER
 #		pragma comment(lib, "ws2_32.lib")