summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>