Skip to content
Merged

fix ci #7774

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/host_env/src/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod platform {
pub use libc::{FD_ISSET, FD_SET, FD_SETSIZE, FD_ZERO, fd_set, select, timeval};
pub use std::os::unix::io::RawFd;

#[must_use]
pub const fn check_err(x: i32) -> bool {
x < 0
}
Expand Down Expand Up @@ -52,6 +53,7 @@ pub mod platform {
unsafe { __WSAFDIsSet(fd as _, set) != 0 }
}

#[must_use]
pub fn check_err(x: i32) -> bool {
x == WinSock::SOCKET_ERROR
}
Expand Down
Loading