Skip to content

Commit 8f5684a

Browse files
author
mounten
committed
added cfmakeraw definition for target_os = nto
1 parent d8b90d6 commit 8f5684a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,16 +1834,12 @@ cfg_if! {
18341834
}
18351835

18361836
cfg_if! {
1837-
if #[cfg(target_os = "aix")] {
1837+
if #[cfg(any(target_os = "aix", target_os = "nto"))] {
18381838
extern "C" {
18391839
pub fn cfmakeraw(termios: *mut crate::termios) -> c_int;
18401840
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18411841
}
1842-
} else if #[cfg(not(any(
1843-
target_os = "solaris",
1844-
target_os = "illumos",
1845-
target_os = "nto",
1846-
)))] {
1842+
} else if #[cfg(not(any(target_os = "solaris", target_os = "illumos",)))] {
18471843
extern "C" {
18481844
pub fn cfmakeraw(termios: *mut crate::termios);
18491845
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;

0 commit comments

Comments
 (0)