Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b0bb489 authored by JP Abgrall's avatar JP Abgrall
Browse files

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: default avatarJP Abgrall <jpa@google.com>
parent 66e95d76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
                }