[FFmpeg-devel] [PATCH] Replace ENOSYS by ENOTSUP

William Ahern william
Sat Jul 21 03:47:45 CEST 2007


On Fri, Jul 20, 2007 at 03:54:16PM +0200, Panagiotis Issaris wrote:
<snip> 
> On #ffmpeg someone mentioned that Cygwin does not have ENOTSUP. Add a  
> define for it in os_support.h in case cygwin is used?
> 

It doesn't exist in OpenBSD (and likely most BSD's), either. Certainly not
with OpenBSD 4.0.

In my personal compat library, alternatives for which I'll alias ENOTSUP are
EOPNOTSUPP (BSD), or EINVAL (everywhere).

ENOTSUP is specified by SUSv3, though. So it's not a bad idea to use it, it
just hasn't caught on widely.




More information about the ffmpeg-devel mailing list