Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
35a3c501
Commit
35a3c501
authored
Aug 29, 1999
by
Howard Chu
Browse files
Define sock_errno() and sock_errstr() for Unix and winsock.
parent
9a582021
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ac/socket.h
View file @
35a3c501
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment