[Bug c++/99327] New: ENOTSUP macro does not exist on djgpp crt
unlvsur at live dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 1 17:13:05 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99327
Bug ID: 99327
Summary: ENOTSUP macro does not exist on djgpp crt
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: unlvsur at live dot com
Target Milestone: ---
libstdc++'s filesystem uses std::errc::not_supported but that does not exist on
djgpp. Bootstrap failure
What I did was just
#define ENOTSUP 42
in errno.h and bootstrap succeed
However, strerror will not work for this anymore.
There is another solution for this.
Replace all std::errc::not_supported to std::errc::invalid_argument since
EINVAL should exist on all platforms.
More information about the Gcc-bugs
mailing list