Skip to content

Commit 998e8de

Browse files
committed
Auto merge of #1422 - newpavlov:redox_fix, r=gnzlbg
Redox target fix Closes #1420
2 parents 2b351c2 + 1ca558d commit 998e8de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ cfg_if! {
113113

114114
mod switch;
115115
pub use switch::*;
116-
} else if #[cfg(unix)] {
116+
} else if #[cfg(any(unix, target_os="redox"))] {
117117
mod fixed_width_ints;
118118
pub use fixed_width_ints::*;
119119

src/unix/redox/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub type speed_t = u32;
3535
pub type suseconds_t = ::c_int;
3636
pub type tcflag_t = u32;
3737
pub type time_t = ::c_long;
38+
pub enum timezone {}
3839

3940
s! {
4041
pub struct addrinfo {

0 commit comments

Comments
 (0)