Skip to content
Snippets Groups Projects
Commit 534a11f4 authored by rswindell's avatar rswindell
Browse files

Fixed EMSGSIZE definition for WinSock.

Added SOCKADDR definition for non-WinSock.
parent c3c30e30
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,8 @@ ...@@ -74,6 +74,8 @@
#define EINTR (WSAEINTR-WSABASEERR) #define EINTR (WSAEINTR-WSABASEERR)
#undef ENOTSOCK #undef ENOTSOCK
#define ENOTSOCK (WSAENOTSOCK-WSABASEERR) #define ENOTSOCK (WSAENOTSOCK-WSABASEERR)
#undef EMSGSIZE
#define EMSGSIZE (WSAEMSGSIZE-WSABASEERR)
#undef EWOULDBLOCK #undef EWOULDBLOCK
#define EWOULDBLOCK (WSAEWOULDBLOCK-WSABASEERR) #define EWOULDBLOCK (WSAEWOULDBLOCK-WSABASEERR)
#undef ECONNRESET #undef ECONNRESET
...@@ -96,6 +98,7 @@ static wsa_error; ...@@ -96,6 +98,7 @@ static wsa_error;
/* WinSock-isms */ /* WinSock-isms */
#define HOSTENT struct hostent #define HOSTENT struct hostent
#define IN_ADDR struct in_addr #define IN_ADDR struct in_addr
#define SOCKADDR struct sockaddr
#define SOCKADDR_IN struct sockaddr_in #define SOCKADDR_IN struct sockaddr_in
#define LINGER struct linger #define LINGER struct linger
#define SOCKET int #define SOCKET int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment