diff --git a/src/lib.rs b/src/lib.rs index 2dc42702fcb7..0f1b7daad2b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -113,7 +113,7 @@ cfg_if! { mod switch; pub use switch::*; - } else if #[cfg(unix)] { + } else if #[cfg(any(unix, target_os="redox"))] { mod fixed_width_ints; pub use fixed_width_ints::*; diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index 388918eb9b5d..532bd60863dd 100644 --- a/src/unix/redox/mod.rs +++ b/src/unix/redox/mod.rs @@ -36,6 +36,13 @@ pub type suseconds_t = ::c_int; pub type tcflag_t = u32; pub type time_t = ::c_long; +#[cfg_attr(feature = "extra_traits", derive(Debug))] +pub enum timezone {} +impl ::Copy for timezone {} +impl ::Clone for timezone { + fn clone(&self) -> timezone { *self } +} + s! { pub struct addrinfo { pub ai_flags: ::c_int,