[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
> Patch attached.

Should not file.c also have

#include "avformat.h"
#include <fcntl.h>
+include <io.h>
#include <unistd.h>
#include <sys/time.h>

All systems that support DOS setmode also have it prototyped in io.h

More information about the ffmpeg-devel mailing list