From 563f9ff9f02b4e427d5829c5ee38da715bee8a53 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 24 Sep 2024 11:11:49 -0700 Subject: [PATCH] Fix compilation on macOS. --- tests/event/select.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/event/select.rs b/tests/event/select.rs index 78cdf6a20..288239ea6 100644 --- a/tests/event/select.rs +++ b/tests/event/select.rs @@ -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; }