From d956310612fc61878fd0f4e905d37ba3a3ac075c Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Mon, 27 Oct 2008 08:40:02 +0000 Subject: 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: * gst/udp/gstudpnetutils.h: Define the correct WINVER so getaddinfo() can be used when using mingw32. Fixes bug #557294. --- ChangeLog | 8 ++++++++ gst/udp/gstudpnetutils.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6084bb9e..40aa48aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-27 Sebastian Dröge + + Patch by: + + * 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 Patch by: diff --git a/gst/udp/gstudpnetutils.h b/gst/udp/gstudpnetutils.h index 68407f7a..6c3f740f 100644 --- a/gst/udp/gstudpnetutils.h +++ b/gst/udp/gstudpnetutils.h @@ -27,6 +27,9 @@ #include #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 #include -- cgit