[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#227386: libc6-dev: ENOTSUP==EOPNOTSUPP, which violates SUSv3



Aurelien Jarno <aurelien@aurel32.net> writes:

> Why you don't fix your code instead of creating more problems than you
> try to solve? You say us you already have a technical solution in your
> code for EWOULDBLOCK and EAGAIN. Please apply the same for ENOTSUP and
> EOPNOTSUPP.

The sad part is that if it's just an issue with duplicate case statements,
it's a two-line fix.

    case ENOTSUP:
    case EOPNOTSUPP:

becomes:

    case ENOTSUP:
#if ENOTSUP != EOPNOTSUPP
    case EOPNOTSUPP:
#endif

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: