From 68ece2fef3a8e3f6c29d72cda2d536cb8c446d51 Mon Sep 17 00:00:00 2001
From: Avuton Olrich <avuton@gmail.com>
Date: Sun, 21 Mar 2010 18:27:29 -0700
Subject: Define winnt or greater on mingw32 to take advantage of get*info().

---
 src/listen.c      | 1 +
 src/socket_util.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/listen.c b/src/listen.c
index 240a42b0e..9fb60edcb 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -35,6 +35,7 @@
 #include <assert.h>
 
 #ifdef WIN32
+#define WINVER 0x0501
 #include <ws2tcpip.h>
 #include <winsock.h>
 #else
diff --git a/src/socket_util.c b/src/socket_util.c
index 01733eb03..7895d3367 100644
--- a/src/socket_util.c
+++ b/src/socket_util.c
@@ -28,6 +28,7 @@
 #include <sys/socket.h>
 #include <netdb.h>
 #else /* G_OS_WIN32 */
+#define WINVER 0x0501
 #include <ws2tcpip.h>
 #include <winsock.h>
 #endif /* G_OS_WIN32 */
-- 
cgit v1.2.3