Skip to content

Commit

Permalink
Auto merge of #1422 - newpavlov:redox_fix, r=gnzlbg
Browse files Browse the repository at this point in the history
Redox target fix

Closes #1420
  • Loading branch information
bors committed Jul 6, 2019
2 parents 2b351c2 + 46cee95 commit 3774e10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;

Expand Down
7 changes: 7 additions & 0 deletions src/unix/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3774e10

Please sign in to comment.