From c3e1de90331f57d4a089cb47a75765f0e7fd88d5 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 3 Jul 2008 09:12:49 +0000 Subject: [PATCH] gst-libs/gst/sdp/gstsdpmessage.c: Makes libgstsdp compile with mingw32 by defining the right WINVER so that getaddrin... Original commit message from CVS: Patch by: Damien Lespiau * gst-libs/gst/sdp/gstsdpmessage.c: Makes libgstsdp compile with mingw32 by defining the right WINVER so that getaddrinfo() can be used. Fixes #541358. --- ChangeLog | 8 ++++++++ common | 2 +- gst-libs/gst/sdp/gstsdpmessage.c | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 231c6dcd12..eda60ba7f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-07-03 Wim Taymans + + Patch by: Damien Lespiau + + * gst-libs/gst/sdp/gstsdpmessage.c: + Makes libgstsdp compile with mingw32 by defining the right WINVER so + that getaddrinfo() can be used. Fixes #541358. + 2008-07-01 Wim Taymans * gst/videotestsrc/gstvideotestsrc.c: diff --git a/common b/common index d9cd98b46a..593bb114c6 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit d9cd98b46aebaf143dc43d8563a3bff650be6a7e +Subproject commit 593bb114c6f5c32b529aa6443be4c2d60d6484c7 diff --git a/gst-libs/gst/sdp/gstsdpmessage.c b/gst-libs/gst/sdp/gstsdpmessage.c index 0f4e9b4da7..0954ef3378 100644 --- a/gst-libs/gst/sdp/gstsdpmessage.c +++ b/gst-libs/gst/sdp/gstsdpmessage.c @@ -72,6 +72,11 @@ #ifdef _MSC_VER #include #endif +/* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later. + * minwg32 headers check WINVER before allowing the use of these */ +#ifndef WINVER +#define WINVER 0x0501 +#endif #include #else #include