[FFmpeg-devel] setmode(fd, flag)

Ramiro Polla ramiro.polla
Sun Jan 11 23:05:56 CET 2009


On Sun, Jan 11, 2009 at 4:33 PM, Diego Biurrun <diego at biurrun.de> wrote:
> On Fri, Jan 09, 2009 at 01:58:32AM -0200, Ramiro Polla wrote:
>> 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.
>
> Looks OK.

Applied.




More information about the ffmpeg-devel mailing list