From: hyc Date: Sun, 18 Apr 2010 19:53:20 +0000 (+0000) Subject: Windows - use ws2tcpip.h, drop our bogus socklen_t define X-Git-Tag: v2.4~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b40c0da3dac558964d9b2be67a23524ea79acff;p=rtmpdump Windows - use ws2tcpip.h, drop our bogus socklen_t define git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@436 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/librtmp/rtmp_sys.h b/librtmp/rtmp_sys.h index 50452af..d6e5843 100644 --- a/librtmp/rtmp_sys.h +++ b/librtmp/rtmp_sys.h @@ -23,12 +23,12 @@ #ifdef WIN32 #include +#include #define GetSockError() WSAGetLastError() #define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e) #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 #define SET_RCVTIMEO(tv,s) int tv = s*1000 #else #include