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

François Revol revol
Thu Mar 27 16:26:17 CET 2008


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.

Fran?ois.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080327/687402ce/attachment.asc>



More information about the ffmpeg-devel mailing list