[FFmpeg-devel] [PATCH] discard <sys/select.h> for MinGW32 OS

Måns Rullgård mans
Wed Aug 13 22:14:17 CEST 2008


Kurtnoise <kurtnoise at free.fr> writes:

> Hi,
>
> Since rev 14718, compilation fails on MinGW32 platform due to the
> sys/select.h missing header file. Don't ask me why this file isn't
> included...
>
> Here is a patch to discard this.
>
> ++
> Kurtnoise
>
> Index: libavformat/rtpproto.c
> ===================================================================
> --- libavformat/rtpproto.c	(revision 14736)
> +++ libavformat/rtpproto.c	(working copy)
> @@ -32,7 +32,9 @@
>  #include "network.h"
>  #include "os_support.h"
>  #include <fcntl.h>
> +#ifndef __MINGW32__
>  #include <sys/select.h>
> +#endif

Rejected.  We don't have #ifdef __RANDOM_OS__ in our code.  If mingw
really doesn't have that header, use #ifdef HAVE_SYS_SELECT_H.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list