From 5b0bb4898c61e5b5b7dc95c185b2e46b65f60d00 Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Thu, 6 Mar 2014 19:40:45 -0800 Subject: adb: fix windows build after "forward --list" fix. EWOULDBLOCK is not there on windows. It gets translated by the adb_write() wrapper into EGAIN. But the Linux one does not translate EWOULDBLOCK into EGAIN. Without EWOULDBLOCK, it works just fine. Change-Id: Ic293be392aa4364637428ea94ef87890ffa09b9b Signed-off-by: JP Abgrall --- adb/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adb') diff --git a/adb/transport.c b/adb/transport.c index 58f685c..f35880c 100644 --- a/adb/transport.c +++ b/adb/transport.c @@ -1188,7 +1188,7 @@ int writex(int fd, const void *ptr, size_t len) D("writex: fd=%d error %d: %s\n", fd, errno, strerror(errno)); if (errno == EINTR) continue; - if (errno == EAGAIN || errno == EWOULDBLOCK) { + if (errno == EAGAIN) { adb_sleep_ms(1); // just yield some cpu time continue; } -- cgit v1.1