Skip to content

Commit

Permalink
Make all Fuchsia events registerable (tokio-rs#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
cramertj authored and alexcrichton committed Aug 5, 2017
1 parent 23cc470 commit b882a70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,12 @@ fn registerable(interest: Ready) -> bool {
unixinterest.is_readable() || unixinterest.is_writable() || unixinterest.is_aio()
}

#[cfg(not(all(unix, not(target_os = "fuchsia"))))]
#[cfg(target_os = "fuchsia")]
fn registerable(interest: Ready) -> bool {
event::ready_as_usize(interest) != 0
}

#[cfg(not(unix))]
fn registerable(interest: Ready) -> bool {
interest.is_readable() || interest.is_writable()
}
Expand Down

0 comments on commit b882a70

Please sign in to comment.