Fix the build

This commit is contained in:
Justine Tunney 2024-07-28 21:02:04 -07:00
parent 77d3a07ff2
commit c1a0b017e9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 161 additions and 61 deletions

View file

@ -218,7 +218,7 @@ system_error::~system_error() noexcept {}
void __throw_system_error(int ev, const char* what_arg) {
#ifndef _LIBCPP_HAS_NO_EXCEPTIONS
std::__throw_system_error(error_code((int)__err_to_errc(ev), system_category()), what_arg);
std::__throw_system_error(error_code(__errc_to_err((errc)ev), system_category()), what_arg);
#else
// The above could also handle the no-exception case, but for size, avoid referencing system_category() unnecessarily.
_LIBCPP_VERBOSE_ABORT(