]> granicus.if.org Git - rtmpdump/commitdiff
Fix WIN32 timeout handling
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sat, 2 Jan 2010 03:55:55 +0000 (03:55 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sat, 2 Jan 2010 03:55:55 +0000 (03:55 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@169 400ebc74-4327-4243-bc38-086b20814532

rtmp.h

diff --git a/rtmp.h b/rtmp.h
index 0e4a934ba584a2608edf1a93224b1ac4b00ebcc5..6cf4bd0df1b1aeda955a90b159b12cf6871c3fd7 100644 (file)
--- a/rtmp.h
+++ b/rtmp.h
@@ -27,7 +27,7 @@
 #include <winsock.h>
 #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