summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs1
-rw-r--r--src/poll.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fda06c8f..c4019ca9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -60,7 +60,6 @@ pub mod mqueue;
#[cfg(not(target_os = "redox"))]
pub mod net;
#[deny(missing_docs)]
-#[cfg(not(target_os = "redox"))]
pub mod poll;
#[deny(missing_docs)]
#[cfg(not(target_os = "redox"))]
diff --git a/src/poll.rs b/src/poll.rs
index fbdd09de..80784a54 100644
--- a/src/poll.rs
+++ b/src/poll.rs
@@ -64,12 +64,16 @@ libc_bitflags! {
/// `O_NONBLOCK` is set).
POLLOUT;
/// Equivalent to [`POLLIN`](constant.POLLIN.html)
+ #[cfg(not(target_os = "redox"))]
POLLRDNORM;
+ #[cfg(not(target_os = "redox"))]
/// Equivalent to [`POLLOUT`](constant.POLLOUT.html)
POLLWRNORM;
/// Priority band data can be read (generally unused on Linux).
+ #[cfg(not(target_os = "redox"))]
POLLRDBAND;
/// Priority data may be written.
+ #[cfg(not(target_os = "redox"))]
POLLWRBAND;
/// Error condition (only returned in
/// [`PollFd::revents`](struct.PollFd.html#method.revents);