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

Kurtnoise kurtnoise
Thu Aug 14 08:43:58 CEST 2008


Hi,

M?ns Rullg?rd a ?crit :
> 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.
> 
ok, got it...

Thanks.

++
Kurtnoise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtpproco_02.diff
Type: text/x-diff
Size: 411 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080814/d96a7cfa/attachment.diff>



More information about the ffmpeg-devel mailing list