diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h
index a5f067cfb9dee22faf2fd736168bf3da60142f8c..9406539ecd48f63aa355ee01ce48ed0e145c955b 100644
--- a/src/xpdev/sockwrap.h
+++ b/src/xpdev/sockwrap.h
@@ -74,6 +74,8 @@
 #define EINTR			(WSAEINTR-WSABASEERR)
 #undef  ENOTSOCK
 #define ENOTSOCK		(WSAENOTSOCK-WSABASEERR)
+#undef  EMSGSIZE
+#define EMSGSIZE		(WSAEMSGSIZE-WSABASEERR)
 #undef  EWOULDBLOCK
 #define EWOULDBLOCK		(WSAEWOULDBLOCK-WSABASEERR)
 #undef  ECONNRESET
@@ -96,6 +98,7 @@ static  wsa_error;
 /* WinSock-isms */
 #define HOSTENT			struct hostent
 #define IN_ADDR			struct in_addr
+#define SOCKADDR		struct sockaddr
 #define SOCKADDR_IN		struct sockaddr_in
 #define LINGER			struct linger
 #define SOCKET			int