diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-02-02 16:00:21 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-02-02 16:57:27 +0000 |
commit | 5c43f06c228d169c370e99fa009154344fa305b8 (patch) | |
tree | ab96262784a3c5c9ae5934379602f72b7e6cc0de /gcc | |
parent | 331b4f168a06cd85fe40fd03b48b128cc8af399c (diff) | |
download | gcc-5c43f06c228d169c370e99fa009154344fa305b8.zip gcc-5c43f06c228d169c370e99fa009154344fa305b8.tar.gz gcc-5c43f06c228d169c370e99fa009154344fa305b8.tar.bz2 |
libstdc++: Use ENOSYS for unsupported filesystem ops on AVR
Because avr-libc <errno.h> defines most error numbers with duplicate
values it's not sufficient to check #ifdef ENOTSUP when deciding which
std::errc constant to use for the filesystem library's __unsupported()
helper. Add a special case for AVR to always use the ENOSYS value.
libstdc++-v3/ChangeLog:
* src/filesystem/ops-common.h [AVR] (__unsupported): Always use
errc::function_not_supported instead of errc::not_supported.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions