mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 19:22: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/fs/error.h
vendored
2
third_party/libcxx/fs/error.h
vendored
|
@ -100,7 +100,7 @@ inline errc __win_err_to_errc(int err) {
|
|||
|
||||
inline error_code capture_errno() {
|
||||
_LIBCPP_ASSERT_INTERNAL(errno != 0, "Expected errno to be non-zero");
|
||||
return error_code((int)__err_to_errc(errno), generic_category());
|
||||
return error_code(__errc_to_err((errc)errno), generic_category());
|
||||
}
|
||||
|
||||
#if defined(_LIBCPP_WIN32API)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue