gst/udp/gstudpnetutils.h: Define the correct WINVER so getaddinfo() can be used when using mingw32. Fixes bug #557294.

Original commit message from CVS:
Patch by: <lrn1986 at gmail dot com>
* gst/udp/gstudpnetutils.h:
Define the correct WINVER so getaddinfo() can be used when using
mingw32. Fixes bug #557294.
This commit is contained in:
Sebastian Dröge 2008-10-27 08:40:02 +00:00
parent cbec4b2d9d
commit d956310612
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2008-10-27 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: <lrn1986 at gmail dot com>
* gst/udp/gstudpnetutils.h:
Define the correct WINVER so getaddinfo() can be used when using
mingw32. Fixes bug #557294.
2008-10-27 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: <lrn1986 at gmail dot com>

View file

@ -27,6 +27,9 @@
#include <glib.h>
#ifdef G_OS_WIN32
/* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later.
* minwg32 headers check WINVER before allowing the use of these */
#define WINVER 0x0501
#include <winsock2.h>
#include <ws2tcpip.h>