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
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment