mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
Temporary fix for BEOS.
tcp_read/write should not be used.
This commit is contained in:
parent
e808aa49cb
commit
c061aaa81c
1 changed files with 5 additions and 0 deletions
|
|
@ -110,6 +110,11 @@ LIBLUTIL_F (char *) WSAGetErrorString LDAP_P((int));
|
||||||
#elif HAVE_CLOSESOCKET
|
#elif HAVE_CLOSESOCKET
|
||||||
# define tcp_close( s ) closesocket( s )
|
# define tcp_close( s ) closesocket( s )
|
||||||
|
|
||||||
|
# ifdef __BEOS__
|
||||||
|
# define tcp_read( s, buf, len ) recv( s, buf, len, 0 )
|
||||||
|
# define tcp_write( s, buf, len ) send( s, buf, len, 0 )
|
||||||
|
# endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# define tcp_close( s ) close( s )
|
# define tcp_close( s ) close( s )
|
||||||
# define tcp_read( s, buf, len) read( s, buf, len )
|
# define tcp_read( s, buf, len) read( s, buf, len )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue