From: hyc Date: Sat, 2 Jan 2010 03:55:55 +0000 (+0000) Subject: Fix WIN32 timeout handling X-Git-Tag: v2.4~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8f0db5db37917431e62d00f626f7770ff30db75;p=rtmpdump Fix WIN32 timeout handling git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@169 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/rtmp.h b/rtmp.h index 0e4a934..6cf4bd0 100644 --- a/rtmp.h +++ b/rtmp.h @@ -27,7 +27,7 @@ #include #define GetSockError() WSAGetLastError() #define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e) -#define EWOULDBLOCK EAGAIN +#define EWOULDBLOCK WSAETIMEDOUT /* we don't use nonblocking, but we do use timeouts */ #define sleep(n) Sleep(n*1000) #define msleep(n) Sleep(n) #define socklen_t int