[FFmpeg-devel] setmode(fd, flag)

Dave Yeo daveryeo
Wed Jan 7 06:39:21 CET 2009


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




More information about the ffmpeg-devel mailing list