[FFmpeg-devel] setmode(fd, flag)

Ramiro Polla ramiro.polla
Fri Jan 9 04:58:32 CET 2009


On Wed, Jan 7, 2009 at 3:39 AM, Dave Yeo <daveryeo at telus.net> wrote:
> On 01/06/09 08:43 pm, Ramiro Polla wrote:
>>> I searched for setmode()'s origin, but couldn't find anything saying
>>> it was specific to Microsoft. I couldn't find much information about
>>> it either. MSDN says it's POSIX, although it most certainly isn't (and
>>> I didn't find a way to report it).
>>>
>>> If noone comes with a better suggestion in a few days, I propose
>>> HAVE_DOS_SETMODE.
>>
>> Patch attached.
>>
>
> Should not file.c also have
>
> #include "avformat.h"
> #include <fcntl.h>
> +ifdef HAVE_DOS_SETMODE
> +include <io.h>
> +endif
> #include <unistd.h>
> #include <sys/time.h>
>
> All systems that support DOS setmode also have it prototyped in io.h
> Dave

Good catch. New patch attached.

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: io_h_setmode.diff
Type: text/x-diff
Size: 1008 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090109/cb3f5254/attachment.diff>



More information about the ffmpeg-devel mailing list