[Ffmpeg-devel] [PATCH] MingW RTSP support

Michael A. Kohn mike
Sat Apr 1 02:11:35 CEST 2006



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..

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

:)







More information about the ffmpeg-devel mailing list