From: Kurt Zeilenga Date: Wed, 19 Jun 2002 18:15:20 +0000 (+0000) Subject: Use #ifdef, not #if, to check SHUT_RDWR X-Git-Tag: NO_SLAP_OP_BLOCKS~1405 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5fcd6b41e3bafdfc2d347829d5c98b293888db9c;p=openldap Use #ifdef, not #if, to check SHUT_RDWR --- diff --git a/include/ac/socket.h b/include/ac/socket.h index 01ab58039d..6e931ab28d 100644 --- a/include/ac/socket.h +++ b/include/ac/socket.h @@ -81,7 +81,7 @@ # define ioctl_t u_long # define AC_SOCKET_INVALID ((unsigned int) ~0) -# if SD_BOTH +# ifdef 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 +# ifdef SHUT_RDWR # define tcp_close( s ) (shutdown( s, SHUT_RDWR ), close( s )) # else # define tcp_close( s ) close( s )