Mercurial > mplayer.hg
comparison libmpdemux/pnm.c @ 16372:b313a38c69cb
replace sleep with usec_sleep, required for recent mingw versions, patch by Robert Swain <robert.swain at gmail.com>
author | faust3 |
---|---|
date | Sat, 03 Sep 2005 10:58:52 +0000 |
parents | 941b1a71351f |
children | c0068de90f44 |
comparison
equal
deleted
inserted
replaced
16371:f3e6984c415c | 16372:b313a38c69cb |
---|---|
223 #ifndef HAVE_WINSOCK2 | 223 #ifndef HAVE_WINSOCK2 |
224 if ((timeout>0) && ((errno == EAGAIN) || (errno == EINPROGRESS))) { | 224 if ((timeout>0) && ((errno == EAGAIN) || (errno == EINPROGRESS))) { |
225 #else | 225 #else |
226 if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) { | 226 if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) { |
227 #endif | 227 #endif |
228 sleep (1); timeout--; | 228 usec_sleep (1000000); timeout--; |
229 } else | 229 } else |
230 return -1; | 230 return -1; |
231 } | 231 } |
232 } | 232 } |
233 | 233 |