Skip to content

Commit 639d3b8

Browse files
committed
Add termio support
1 parent e94c139 commit 639d3b8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/sys/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ pub mod statvfs;
8989
#[cfg(any(target_os = "android", target_os = "linux"))]
9090
pub mod sysinfo;
9191

92-
#[cfg(not(target_os = "redox"))]
9392
pub mod termios;
9493

9594
pub mod time;

src/sys/termios.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ libc_bitflags! {
818818
PARODD;
819819
HUPCL;
820820
CLOCAL;
821+
#[cfg(not(target_os = "redox"))]
821822
CRTSCTS;
822823
#[cfg(any(target_os = "android", target_os = "linux"))]
823824
CBAUD;
@@ -868,12 +869,15 @@ libc_bitflags! {
868869
libc_bitflags! {
869870
/// Flags for setting any local modes
870871
pub struct LocalFlags: tcflag_t {
872+
#[cfg(not(target_os = "redox"))]
871873
ECHOKE;
872874
ECHOE;
873875
ECHOK;
874876
ECHO;
875877
ECHONL;
878+
#[cfg(not(target_os = "redox"))]
876879
ECHOPRT;
880+
#[cfg(not(target_os = "redox"))]
877881
ECHOCTL;
878882
ISIG;
879883
ICANON;
@@ -885,8 +889,10 @@ libc_bitflags! {
885889
target_os = "openbsd"))]
886890
ALTWERASE;
887891
IEXTEN;
892+
#[cfg(not(target_os = "redox"))]
888893
EXTPROC;
889894
TOSTOP;
895+
#[cfg(not(target_os = "redox"))]
890896
FLUSHO;
891897
#[cfg(any(target_os = "freebsd",
892898
target_os = "dragonfly",
@@ -895,6 +901,7 @@ libc_bitflags! {
895901
target_os = "netbsd",
896902
target_os = "openbsd"))]
897903
NOKERNINFO;
904+
#[cfg(not(target_os = "redox"))]
898905
PENDIN;
899906
NOFLSH;
900907
}

0 commit comments

Comments
 (0)