From: Kurt Zeilenga Date: Fri, 17 Dec 1999 21:31:44 +0000 (+0000) Subject: Temporary fix for BEOS. X-Git-Tag: UCDATA_2_4~73 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c061aaa81c51a6b2918e7a440c41fd355182ce5d;p=openldap Temporary fix for BEOS. tcp_read/write should not be used. --- diff --git a/include/ac/socket.h b/include/ac/socket.h index 7a97448ed7..35c5ba3b35 100644 --- a/include/ac/socket.h +++ b/include/ac/socket.h @@ -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 )