Mercurial > libavformat.hg
diff tcp.c @ 2321:96bab3153939 libavformat
MinGW returns EAGAIN instead of EINPROGRESS
author | ramiro |
---|---|
date | Wed, 08 Aug 2007 12:08:16 +0000 |
parents | b21c2af60bc9 |
children | b9a881c0967e |
line wrap: on
line diff
--- a/tcp.c Mon Aug 06 21:14:29 2007 +0000 +++ b/tcp.c Wed Aug 08 12:08:16 2007 +0000 @@ -69,7 +69,8 @@ if (ret < 0) { if (ff_neterrno() == FF_NETERROR(EINTR)) goto redo; - if (ff_neterrno() != FF_NETERROR(EINPROGRESS)) + if (ff_neterrno() != FF_NETERROR(EINPROGRESS) && + ff_neterrno() != FF_NETERROR(EAGAIN)) goto fail; /* wait until we are connected or until abort */