diff options
-rw-r--r-- | src/sys/mod.rs | 1 | ||||
-rw-r--r-- | src/sys/termios.rs | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/sys/mod.rs b/src/sys/mod.rs index 98339b0f..882a5c4a 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -89,7 +89,6 @@ pub mod statvfs; #[cfg(any(target_os = "android", target_os = "linux"))] pub mod sysinfo; -#[cfg(not(target_os = "redox"))] pub mod termios; pub mod time; diff --git a/src/sys/termios.rs b/src/sys/termios.rs index 68b0dbc8..0b9bfe90 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -818,6 +818,7 @@ libc_bitflags! { PARODD; HUPCL; CLOCAL; + #[cfg(not(target_os = "redox"))] CRTSCTS; #[cfg(any(target_os = "android", target_os = "linux"))] CBAUD; @@ -868,12 +869,15 @@ libc_bitflags! { libc_bitflags! { /// Flags for setting any local modes pub struct LocalFlags: tcflag_t { + #[cfg(not(target_os = "redox"))] ECHOKE; ECHOE; ECHOK; ECHO; ECHONL; + #[cfg(not(target_os = "redox"))] ECHOPRT; + #[cfg(not(target_os = "redox"))] ECHOCTL; ISIG; ICANON; @@ -885,8 +889,10 @@ libc_bitflags! { target_os = "openbsd"))] ALTWERASE; IEXTEN; + #[cfg(not(target_os = "redox"))] EXTPROC; TOSTOP; + #[cfg(not(target_os = "redox"))] FLUSHO; #[cfg(any(target_os = "freebsd", target_os = "dragonfly", @@ -895,6 +901,7 @@ libc_bitflags! { target_os = "netbsd", target_os = "openbsd"))] NOKERNINFO; + #[cfg(not(target_os = "redox"))] PENDIN; NOFLSH; } |