[rtmpdump] r436 - trunk/librtmp/rtmp_sys.h
hyc
subversion at mplayerhq.hu
Sun Apr 18 21:53:21 CEST 2010
Author: hyc
Date: Sun Apr 18 21:53:20 2010
New Revision: 436
Log:
Windows - use ws2tcpip.h, drop our bogus socklen_t define
Modified:
trunk/librtmp/rtmp_sys.h
Modified: trunk/librtmp/rtmp_sys.h
==============================================================================
--- trunk/librtmp/rtmp_sys.h Sun Apr 18 21:41:36 2010 (r435)
+++ trunk/librtmp/rtmp_sys.h Sun Apr 18 21:53:20 2010 (r436)
@@ -23,12 +23,12 @@
#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>
More information about the rtmpdump
mailing list