mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
rpcrt4: Use send on a socket instead of write as it's more portable.
This commit is contained in:
parent
122eadb815
commit
c370980dfa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue