sdp: Include winsock2.h after defining WINVER.

Similar to bug #587080.
This commit is contained in:
Peter Kjellerstedt 2009-06-29 09:36:27 +02:00
parent c398f2f376
commit 8927dbc98b

View file

@ -69,14 +69,14 @@
#include <gst/gstinfo.h> /* For GST_STR_NULL */ #include <gst/gstinfo.h> /* For GST_STR_NULL */
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
#ifdef _MSC_VER
#include <Winsock2.h>
#endif
/* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later. /* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later.
* minwg32 headers check WINVER before allowing the use of these */ * minwg32 headers check WINVER before allowing the use of these */
#ifndef WINVER #ifndef WINVER
#define WINVER 0x0501 #define WINVER 0x0501
#endif #endif
#ifdef _MSC_VER
#include <Winsock2.h>
#endif
#include <ws2tcpip.h> #include <ws2tcpip.h>
#else #else
#include <sys/socket.h> #include <sys/socket.h>