Define sock_errno() and sock_errstr() for Unix and winsock.

This commit is contained in:
Howard Chu 1999-08-29 01:56:51 +00:00
parent 9a58202116
commit 35a3c5017f

View file

@ -77,6 +77,9 @@
#define EINPROGRESS WSAEINPROGRESS
#define ETIMEDOUT WSAETIMEDOUT
#define sock_errno() WSAGetLastError()
#define sock_errstr(err) WSAGetLastErrorString()
#elif MACOS
# define tcp_close( s ) tcpclose( s )
@ -93,6 +96,8 @@
#else
# define tcp_close( s ) close( s )
# define sock_errno() errno
# define sock_errstr(err) strerror(err)
#endif /* MACOS */
#ifndef ioctl_t