diff --git a/lib/wasi/src/state/types.rs b/lib/wasi/src/state/types.rs index e0289a7485c..ca20303b4d6 100644 --- a/lib/wasi/src/state/types.rs +++ b/lib/wasi/src/state/types.rs @@ -243,6 +243,7 @@ pub fn iterate_poll_events(pes: PollEventSet) -> PollEventIter { PollEventIter { pes, i: 0 } } +#[cfg(unix)] fn poll_event_set_to_platform_poll_events(mut pes: PollEventSet) -> i16 { let mut out = 0; for i in 0..16 { @@ -259,6 +260,7 @@ fn poll_event_set_to_platform_poll_events(mut pes: PollEventSet) -> i16 { out } +#[cfg(unix)] fn platform_poll_events_to_pollevent_set(mut num: i16) -> PollEventSet { let mut peb = PollEventBuilder::new(); for i in 0..16 { @@ -324,9 +326,9 @@ pub(crate) fn poll( #[cfg(not(unix))] pub(crate) fn poll( - selfs: &[&dyn WasiFile], - events: &[PollEventSet], - seen_events: &mut [PollEventSet], + _selfs: &[&dyn WasiFile], + _events: &[PollEventSet], + _seen_events: &mut [PollEventSet], ) -> Result<(), WasiFsError> { unimplemented!("HostFile::poll in WasiFile is not implemented for non-Unix-like targets yet"); }