Commit c370980d authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Use send on a socket instead of write as it's more portable.

parent 122eadb8
......@@ -996,7 +996,7 @@ static int rpcrt4_conn_tcp_write(RpcConnection *Connection,
int bytes_written = 0;
do
{
int r = write(tcpc->sock, (const char *)buffer + bytes_written, count - bytes_written);
int r = send(tcpc->sock, (const char *)buffer + bytes_written, count - bytes_written, 0);
if (r >= 0)
bytes_written += r;
else if (errno != EAGAIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment