]> granicus.if.org Git - rtmpdump/commitdiff
Windows - use ws2tcpip.h, drop our bogus socklen_t define
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sun, 18 Apr 2010 19:53:20 +0000 (19:53 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sun, 18 Apr 2010 19:53:20 +0000 (19:53 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@436 400ebc74-4327-4243-bc38-086b20814532

librtmp/rtmp_sys.h

index 50452af31788107679c7480161bb207412235848..d6e58439080f06a1d613a49004fb1fb0a6e9c627 100644 (file)
 
 #ifdef WIN32
 #include <winsock2.h>
+#include <ws2tcpip.h>
 #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 <sys/types.h>