Subject: Re: bug#20536: avoid new gcc warning: ENOTSUP vs EOPNOTSUPP

From: Paul Eggert <[email-masked]>
Date: Sun, 10 May 2015 07:17:15 -0700

Jim Meyering wrote:
> +  return err == EOPNOTSUPP
> +#if ENOTSUP != EOPNOTSUPP
> +    || err == ENOTSUP
> +#endif
> +    ;

Would the following work instead?  It's a bit cleaner to avoid #if:

   return err == EOPNOTSUPP || (ENOTSUP != EOPNOTSUPP && err == ENOTSUP);