int so_errno;
int dummy = sizeof(so_errno);
if ( getsockopt( s, SOL_SOCKET, SO_ERROR, &so_errno, &dummy )
- == SOCKET_ERROR )
+ == AC_SOCKET_ERROR )
{
return -1;
}
char ch;
int dummy = sizeof(sin);
if ( getpeername( s, (struct sockaddr *) &sin, &dummy )
- == SOCKET_ERROR )
+ == AC_SOCKET_ERROR )
{
/* XXX: needs to be replace with ber_stream_read() */
read(s, &ch, 1);
if ( ldap_pvt_ndelay_on(ld, s) == -1 )
return ( -1 );
- if ( connect(s, sin, addrlen) != SOCKET_ERROR )
+ if ( connect(s, sin, addrlen) != AC_SOCKET_ERROR )
{
if ( ldap_pvt_ndelay_off(ld, s) == -1 )
return ( -1 );
#else
z,
#endif
- opt_tv ? &tv : NULL) == SOCKET_ERROR )
+ opt_tv ? &tv : NULL) == AC_SOCKET_ERROR )
{
return ( -1 );
}
int so_errno;
int dummy = sizeof(so_errno);
if ( getsockopt( s, SOL_SOCKET, SO_ERROR, &so_errno, &dummy )
- == SOCKET_ERROR )
+ == AC_SOCKET_ERROR )
{
return -1;
}
char ch;
int dummy = sizeof(sa);
if ( getpeername( s, (struct sockaddr *) &sa, &dummy )
- == SOCKET_ERROR )
+ == AC_SOCKET_ERROR )
{
/* XXX: needs to be replace with ber_stream_read() */
read(s, &ch, 1);
return ( -1 );
if ( connect(s, (struct sockaddr *) sa, sizeof(struct sockaddr_un))
- != SOCKET_ERROR )
+ != AC_SOCKET_ERROR )
{
if ( ldap_pvt_ndelay_off(ld, s) == -1 ) {
return ( -1 );
FD_SET(s, &wfds );
if ( select(ldap_int_tblsize, z, &wfds, z, opt_tv ? &tv : NULL)
- == SOCKET_ERROR )
+ == AC_SOCKET_ERROR )
{
return ( -1 );
}