support older win32 platforms when building with newer versions of VS

* include/wsockcompat.h: support older win32 platforms when building
  with newer versions of VS

svn path=/trunk/; revision=3736
diff --git a/ChangeLog b/ChangeLog
index 900856e..5d818b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr  9 19:43:25 CEST 2008 Rob Richards <rrichards@ctindustries.net>
+
+	* include/wsockcompat.h: support older win32 platforms when building
+	  with newer versions of VS
+
 Tue Apr  8 16:56:07 CEST 2008 Daniel Veillard <daniel@veillard.com>
 
 	* configure.in NEWS doc/*: preparing release of 2.6.32
diff --git a/include/wsockcompat.h b/include/wsockcompat.h
index 333b561..18fab37 100644
--- a/include/wsockcompat.h
+++ b/include/wsockcompat.h
@@ -21,6 +21,7 @@
 
 /* Check if ws2tcpip.h is a recent version which provides getaddrinfo() */
 #if defined(GetAddrInfo)
+#include <wspiapi.h>
 #define HAVE_GETADDRINFO
 #endif
 #endif