]> git.sur5r.net Git - openldap/commitdiff
Temporary fix for BEOS.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 17 Dec 1999 21:31:44 +0000 (21:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 17 Dec 1999 21:31:44 +0000 (21:31 +0000)
tcp_read/write should not be used.

include/ac/socket.h

index 7a97448ed7fcae479644306e449151950943ade7..35c5ba3b3556a8976aa732405a236444eeffc9ca 100644 (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 )