projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c398f2f
)
sdp: Include winsock2.h after defining WINVER.
author
Peter Kjellerstedt
<pkj@axis.com>
Mon, 29 Jun 2009 07:36:27 +0000
(09:36 +0200)
committer
Peter Kjellerstedt
<pkj@axis.com>
Mon, 29 Jun 2009 07:36:27 +0000
(09:36 +0200)
Similar to bug #587080.
gst-libs/gst/sdp/gstsdpmessage.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/sdp/gstsdpmessage.c
b/gst-libs/gst/sdp/gstsdpmessage.c
index
3064800
..
5495abc
100644
(file)
--- a/
gst-libs/gst/sdp/gstsdpmessage.c
+++ b/
gst-libs/gst/sdp/gstsdpmessage.c
@@
-69,14
+69,14
@@
#include <gst/gstinfo.h> /* For GST_STR_NULL */
#ifdef G_OS_WIN32
#include <gst/gstinfo.h> /* For GST_STR_NULL */
#ifdef G_OS_WIN32
-#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
/* 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
+#ifdef _MSC_VER
+#include <Winsock2.h>
+#endif
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>