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 <damien dot lespiau at gmail dot com>
* gst-libs/gst/sdp/gstsdpmessage.c:
Makes libgstsdp compile with mingw32 by defining the right WINVER so
that getaddrinfo() can be used. Fixes #541358.
This commit is contained in:
Damien Lespiau 2008-07-03 09:12:49 +00:00 committed by Wim Taymans
parent 3fb8f3b0dd
commit c3e1de9033
3 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2008-07-03 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Damien Lespiau <damien dot lespiau at gmail dot com>
* 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 <wim.taymans@collabora.co.uk>
* gst/videotestsrc/gstvideotestsrc.c:

2
common

@ -1 +1 @@
Subproject commit d9cd98b46aebaf143dc43d8563a3bff650be6a7e
Subproject commit 593bb114c6f5c32b529aa6443be4c2d60d6484c7

View file

@ -72,6 +72,11 @@
#ifdef _MSC_VER
#include <Winsock2.h>
#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 <ws2tcpip.h>
#else
#include <sys/socket.h>