Skip to content

Commit

Permalink
poll: Fix target_os="wasi" compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
jasta authored and Thomasdezeeuw committed Jul 31, 2023
1 parent 7947803 commit fc4be69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sys/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ cfg_io_source! {
use std::io;
#[cfg(windows)]
use std::os::windows::io::RawSocket;
#[cfg(not(windows))]
#[cfg(unix)]
use std::os::unix::io::RawFd;

#[cfg(any(windows, unix))]
use crate::{Registry, Token, Interest};

pub(crate) struct IoSourceState;
Expand All @@ -45,7 +46,7 @@ cfg_io_source! {
}
}

#[cfg(not(windows))]
#[cfg(unix)]
impl IoSourceState {
pub fn register(
&mut self,
Expand Down

0 comments on commit fc4be69

Please sign in to comment.