summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-10-27 08:40:02 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-10-27 08:40:02 +0000
commitd956310612fc61878fd0f4e905d37ba3a3ac075c (patch)
tree3d9c6c9f905a83c5b9275ae45f22a4beb20dc09b
parentcbec4b2d9dbad5fb67e95b16db6a960b7860c239 (diff)
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.
-rw-r--r--ChangeLog8
-rw-r--r--gst/udp/gstudpnetutils.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6084bb9e..40aa48aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,14 @@
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>
+
* gst/udp/gstdynudpsink.c: (gst_dynudpsink_render):
* gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render):
* gst/udp/gstudpsrc.c: (gst_udpsrc_create):
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 <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>