mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-02 02:32:27 +00:00
Fix the build
This commit is contained in:
parent
77d3a07ff2
commit
c1a0b017e9
6 changed files with 161 additions and 61 deletions
2
third_party/libcxx/system_error.cpp
vendored
2
third_party/libcxx/system_error.cpp
vendored
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue