MinGW returns EAGAIN instead of EINPROGRESS

Originally committed as revision 9982 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla 2007-08-08 12:08:16 +00:00
parent af7d793c00
commit 85060fe6b4

View File

@ -69,7 +69,8 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
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 */