iov: Fix do_send_recv() for MinGW (also fixes a build breakage)
commitc0958559b1a589a0d189c45ea1adaa6b345f4256
authorStefan Weil <sw@weilnetz.de>
Wed, 11 Jul 2012 05:09:05 +0000 (11 07:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 11 Jul 2012 13:51:50 +0000 (11 08:51 -0500)
treef8ea281b38d79b1b96ca77e891a93370ab48a219
parent31783203c3b74c11015b20194d57dada559940cf
iov: Fix do_send_recv() for MinGW (also fixes a build breakage)

Commit 25e5e4c7 broke compilation for non POSIX hosts (e.g. MinGW)
because it partially replaced "ret" by "count".

It also changed the handling of EINTR in a wrong way.

The patch restores the old code for these two changes.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
iov.c