From e5fc7a9f13a032c714fc3ad105ddf352accb82c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sat, 14 May 2011 14:48:56 +0200 Subject: [PATCH] gst/dccp: fix build on newer mingw Fix this build error: CC libgstdccp_la-gstdccpplugin.lo In file included from ../../../gst/dccp/gstdccpclientsrc.h:29:0, from ../../../gst/dccp/gstdccpplugin.c:24: ../../../gst/dccp/gstdccp_common.h:32:0: warning: WINVER redefined [enabled by default] /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:231:0: note: this is the location of the previous definition In file included from ../../../gst/dccp/gstdccpplugin.c:24:0: ../../../gst/dccp/gstdccpclientsrc.h:58:3: error: unknown type name 'uint8_t' In file included from ../../../gst/dccp/gstdccpplugin.c:25:0: ../../../gst/dccp/gstdccpserversink.h:74:3: error: unknown type name 'uint8_t' In file included from ../../../gst/dccp/gstdccpplugin.c:26:0: ../../../gst/dccp/gstdccpclientsink.h:67:3: error: unknown type name 'uint8_t' In file included from ../../../gst/dccp/gstdccpplugin.c:27:0: ../../../gst/dccp/gstdccpserversrc.h:58:3: error: unknown type name 'uint8_t' make: *** [libgstdccp_la-gstdccpplugin.lo] Error 1 https://bugzilla.gnome.org/show_bug.cgi?id=650171 --- gst/dccp/gstdccp_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/dccp/gstdccp_common.h b/gst/dccp/gstdccp_common.h index a2c2ca2a36..cc4c16a1a3 100644 --- a/gst/dccp/gstdccp_common.h +++ b/gst/dccp/gstdccp_common.h @@ -29,7 +29,9 @@ #else /* 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 # include #ifndef socklen_t @@ -37,6 +39,7 @@ #endif #endif #include +#include <_stdint.h> #include #include