diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h
index 6fe7817592b529b48059d84fe709e44eb43d79db..7ac153b83bddf158e0cdc18c42156ebb27f7fffb 100644
--- a/src/xpdev/sockwrap.h
+++ b/src/xpdev/sockwrap.h
@@ -56,6 +56,7 @@
 #if defined(__BORLANDC__)
 #undef _MSC_VER
 #endif
+	#include <wspiapi.h>	/* getaddrinfo() for Windows 2k */
 	#define SOCK_MAXADDRLEN sizeof(SOCKADDR_STORAGE)
 	/* Let's agree on a standard WinSock symbol here, people */
 	#define _WINSOCKAPI_