diff options
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/src/c++11/system_error.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8c94885..644a18a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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> * testsuite/27_io/filesystem/operations/all.cc: Mark unused variable. diff --git a/libstdc++-v3/src/c++11/system_error.cc b/libstdc++-v3/src/c++11/system_error.cc index 7844afe..1f06e67 100644 --- a/libstdc++-v3/src/c++11/system_error.cc +++ b/libstdc++-v3/src/c++11/system_error.cc @@ -251,7 +251,8 @@ namespace #ifdef ENOTSOCK case ENOTSOCK: #endif -#ifdef ENOTSUP +#if defined ENOTSUP && (!defined ENOSYS || ENOTSUP != ENOSYS) + // zTPF uses the same value for ENOSYS and ENOTSUP case ENOTSUP: #endif #ifdef ENOTTY |