]> git.sur5r.net Git - openldap/commitdiff
Use #ifdef, not #if, to check SHUT_RDWR
authorKurt Zeilenga <kurt@openldap.org>
Wed, 19 Jun 2002 18:15:20 +0000 (18:15 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 19 Jun 2002 18:15:20 +0000 (18:15 +0000)
include/ac/socket.h

index 01ab58039d493d63d85f495df3f9341b6e23a41c..6e931ab28dd73e4b9feb57e070cb166992b44367 100644 (file)
@@ -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 )