diff --git a/src/backend/libc/event/syscalls.rs b/src/backend/libc/event/syscalls.rs index 268638287..c9373180d 100644 --- a/src/backend/libc/event/syscalls.rs +++ b/src/backend/libc/event/syscalls.rs @@ -477,7 +477,7 @@ pub(crate) fn port_send( unsafe { ret(c::port_send(borrowed_fd(port), events, userdata)) } } -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] +#[cfg(not(target_os = "wasi"))] pub(crate) fn pause() { let r = unsafe { c::pause() }; let errno = libc_errno::errno().0; diff --git a/src/backend/libc/time/syscalls.rs b/src/backend/libc/time/syscalls.rs index 8c730cef0..5c8fa1b07 100644 --- a/src/backend/libc/time/syscalls.rs +++ b/src/backend/libc/time/syscalls.rs @@ -258,11 +258,7 @@ fn clock_gettime_dynamic_old(id: c::clockid_t) -> io::Result { }) } -#[cfg(not(any( - target_os = "redox", - target_os = "wasi", - all(apple, not(target_os = "macos")) -)))] +#[cfg(not(any(target_os = "wasi", all(apple, not(target_os = "macos")))))] #[inline] pub(crate) fn clock_settime(id: ClockId, timespec: Timespec) -> io::Result<()> { // Old 32-bit version: libc has `clock_gettime` but it is not y2038 safe by diff --git a/src/event/mod.rs b/src/event/mod.rs index 29dfc2272..e925379cb 100644 --- a/src/event/mod.rs +++ b/src/event/mod.rs @@ -11,7 +11,7 @@ pub mod epoll; mod eventfd; #[cfg(bsd)] pub mod kqueue; -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] +#[cfg(not(any(windows, target_os = "wasi")))] mod pause; mod poll; #[cfg(solarish)] @@ -27,7 +27,7 @@ pub use crate::timespec::{Nsecs, Secs, Timespec}; target_os = "espidf" ))] pub use eventfd::{eventfd, EventfdFlags}; -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] +#[cfg(not(any(windows, target_os = "wasi")))] pub use pause::*; pub use poll::{poll, PollFd, PollFlags}; #[cfg(any(bsd, linux_kernel, windows, target_os = "wasi"))]