From c061aaa81c51a6b2918e7a440c41fd355182ce5d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 17 Dec 1999 21:31:44 +0000 Subject: [PATCH] Temporary fix for BEOS. tcp_read/write should not be used. --- include/ac/socket.h | 5 +++++ 1 file changed, 5 insertions(+) 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 ) -- 2.39.5