Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
5fcd6b41
Commit
5fcd6b41
authored
Jun 19, 2002
by
Kurt Zeilenga
Browse files
Use #ifdef, not #if, to check SHUT_RDWR
parent
93dbac3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ac/socket.h
View file @
5fcd6b41
...
...
@@ -81,7 +81,7 @@
# define ioctl_t u_long
# define AC_SOCKET_INVALID ((unsigned int) ~0)
# if SD_BOTH
# if
def
SD_BOTH
# define tcp_close( s ) (shutdown( s, SD_BOTH ), closesocket( s ))
# else
# define tcp_close( s ) closesocket( s )
...
...
@@ -127,7 +127,7 @@ LBER_F( char * ) ber_pvt_wsa_err2string LDAP_P((int));
# define tcp_read( s, buf, len) read( s, buf, len )
# define tcp_write( s, buf, len) write( s, buf, len )
# if SHUT_RDWR
# if
def
SHUT_RDWR
# define tcp_close( s ) (shutdown( s, SHUT_RDWR ), close( s ))
# else
# define tcp_close( s ) close( s )
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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