[Ffmpeg-devel] [PATCH] MingW RTSP support

Rich Felker dalias
Sat Apr 1 03:36:59 CEST 2006


On Fri, Mar 31, 2006 at 06:11:35PM -0600, Michael A. Kohn wrote:
> 
> 
> On Fri, 31 Mar 2006, Rich Felker wrote:
> 
> > On Fri, Mar 31, 2006 at 01:15:59PM -0600, Michael A. Kohn wrote:
> > > +#ifndef __MINGW32__
> > >  #include <sys/socket.h>
> > >  #include <netinet/in.h>
> > > -#ifndef __BEOS__
> > > -# include <arpa/inet.h>
> > > -#else
> > > +#include <netdb.h>
> > > +#endif
> > > +#ifdef __BEOS__
> > >  # include "barpainet.h"
> > > +#elif !defined(__MINGW32__)
> > > +# include <arpa/inet.h>
> > >  #endif
> > > -#include <netdb.h>
> >
> > This stuff is still unnecessary. Just add the missing headers to your
> > mingw.
> >
> > Rich
> 
> The problem is sys/socket.h, netinet/in.h, and netdb.h don't exist in the
> MingW system.. so I had to #ifndef them for MingW..

Like I said, locally creating header files by these names with nothing
in them would work just as well, and it would isolate the hack to the
broken component (windows) instead of polluting lots of source files.

> The only include file I had to add was winsock.h in os_support.h using
> Michael Niedermayer's suggestion:
> 
> #define GUID microsuck_GUID
> #include <winsock.h>
> #undef GUID
> 
> :)

:)

Rich





More information about the ffmpeg-devel mailing list