summaryrefslogtreecommitdiffstats
path: root/gst/udp
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 /gst/udp
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.
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstudpnetutils.h3
1 files changed, 3 insertions, 0 deletions
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>