Skip to content

Commit b7daada

Browse files
mountentgross35
authored andcommitted
added cfmakeraw definition for target_os = nto
(backport <#4704>) (cherry picked from commit 8423131)
1 parent a44722f commit b7daada

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
@@ -1825,16 +1825,12 @@ cfg_if! {
18251825
}
18261826

18271827
cfg_if! {
1828-
if #[cfg(target_os = "aix")] {
1828+
if #[cfg(any(target_os = "aix", target_os = "nto"))] {
18291829
extern "C" {
18301830
pub fn cfmakeraw(termios: *mut crate::termios) -> c_int;
18311831
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18321832
}
1833-
} else if #[cfg(not(any(
1834-
target_os = "solaris",
1835-
target_os = "illumos",
1836-
target_os = "nto",
1837-
)))] {
1833+
} else if #[cfg(not(any(target_os = "solaris", target_os = "illumos",)))] {
18381834
extern "C" {
18391835
pub fn cfmakeraw(termios: *mut crate::termios);
18401836
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;

0 commit comments

Comments
 (0)