From 534a11f410976b81c7b6897e6d6f447385c84f6e Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 25 Jun 2002 09:12:16 +0000
Subject: [PATCH] Fixed EMSGSIZE definition for WinSock. Added SOCKADDR
 definition for non-WinSock.

---
 src/xpdev/sockwrap.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h
index a5f067cfb9..9406539ecd 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
-- 
GitLab