Temporary fix for BEOS.

tcp_read/write should not be used.
This commit is contained in:
Kurt Zeilenga 1999-12-17 21:31:44 +00:00
parent e808aa49cb
commit c061aaa81c

View file

@ -110,6 +110,11 @@ LIBLUTIL_F (char *) WSAGetErrorString LDAP_P((int));
#elif HAVE_CLOSESOCKET
# 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
# define tcp_close( s ) close( s )
# define tcp_read( s, buf, len) read( s, buf, len )