Skip to content

Commit

Permalink
Fix compilation on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Sep 24, 2024
1 parent ef24247 commit 563f9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/event/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ fn test_select_with_maxfd_sockets() {
// On old versions of macOS, the above `dup2` call fails with `EBADF`. Just
// skip the rest of this test in that case.
#[cfg(apple)]
if great_fd == -1 && libc_errno::errno() == libc::EBADF {
if great_fd == -1 && libc_errno::errno().0 == libc::EBADF {
return;
}

Expand Down

0 comments on commit 563f9ff

Please sign in to comment.