libstdc++: Deal with ENOSYS == ENOTSUP
zTPF uses the same numeric value for ENOSYS and ENOTSUP. libstdc++-v3/ChangeLog: 2020-03-06 Andreas Krebbel <krebbel@linux.ibm.com> * src/c++11/system_error.cc: Omit the ENOTSUP case statement if it would match ENOSYS.
This commit is contained in:
parent
eb637e7604
commit
28119fba7f
@ -1,3 +1,8 @@
|
|||||||
|
2020-03-06 Andreas Krebbel <krebbel@linux.ibm.com>
|
||||||
|
|
||||||
|
* src/c++11/system_error.cc: Omit the ENOTSUP case statement if it
|
||||||
|
would match ENOSYS.
|
||||||
|
|
||||||
2020-03-05 Jonathan Wakely <jwakely@redhat.com>
|
2020-03-05 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
* testsuite/27_io/filesystem/operations/all.cc: Mark unused variable.
|
* testsuite/27_io/filesystem/operations/all.cc: Mark unused variable.
|
||||||
|
@ -251,7 +251,8 @@ namespace
|
|||||||
#ifdef ENOTSOCK
|
#ifdef ENOTSOCK
|
||||||
case ENOTSOCK:
|
case ENOTSOCK:
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENOTSUP
|
#if defined ENOTSUP && (!defined ENOSYS || ENOTSUP != ENOSYS)
|
||||||
|
// zTPF uses the same value for ENOSYS and ENOTSUP
|
||||||
case ENOTSUP:
|
case ENOTSUP:
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENOTTY
|
#ifdef ENOTTY
|
||||||
|
Loading…
Reference in New Issue
Block a user