[FFmpeg-devel] [PATCH] replace setmode() by fcntl()

Dave Yeo daveryeo
Thu Mar 27 17:09:10 CET 2008


On 03/27/08 08:26 am, Fran?ois Revol wrote:
> I've talked about it long ago but never bothered to send a patch.
> setmode() is not portable. There is a BSD setmode() that differs from
> the MSDOS version that is used there. Since O_BINARY can be defined
> ouside of MSDOS, this breaks those platforms.
>
> fcntl(F_SETFL) should replace it in a more portable way.
> However I'm not sure it's available on mingw or other supported
> platforms, please test.
> Else we'd have to check in configure.
>

Patch compiles fine on OS/2.
Dave






More information about the ffmpeg-devel mailing list