Skip to content

Commit 030e753

Browse files
committed
Add poll
1 parent 62f995b commit 030e753

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ pub mod mqueue;
6262
#[cfg(not(target_os = "redox"))]
6363
pub mod net;
6464
#[deny(missing_docs)]
65-
#[cfg(not(target_os = "redox"))]
6665
pub mod poll;
6766
#[deny(missing_docs)]
6867
#[cfg(not(target_os = "redox"))]

src/poll.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,16 @@ libc_bitflags! {
6464
/// `O_NONBLOCK` is set).
6565
POLLOUT;
6666
/// Equivalent to [`POLLIN`](constant.POLLIN.html)
67+
#[cfg(not(target_os = "redox"))]
6768
POLLRDNORM;
69+
#[cfg(not(target_os = "redox"))]
6870
/// Equivalent to [`POLLOUT`](constant.POLLOUT.html)
6971
POLLWRNORM;
7072
/// Priority band data can be read (generally unused on Linux).
73+
#[cfg(not(target_os = "redox"))]
7174
POLLRDBAND;
7275
/// Priority data may be written.
76+
#[cfg(not(target_os = "redox"))]
7377
POLLWRBAND;
7478
/// Error condition (only returned in
7579
/// [`PollFd::revents`](struct.PollFd.html#method.revents);

0 commit comments

Comments
 (0)