mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
Define sock_errno() and sock_errstr() for Unix and winsock.
This commit is contained in:
parent
9a58202116
commit
35a3c5017f
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue