Skip to content

Commit 8423131

Browse files
mountenJohnTitor
authored andcommitted
added cfmakeraw definition for target_os = nto
1 parent 615224f commit 8423131

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
@@ -1838,16 +1838,12 @@ cfg_if! {
18381838
}
18391839

18401840
cfg_if! {
1841-
if #[cfg(target_os = "aix")] {
1841+
if #[cfg(any(target_os = "aix", target_os = "nto"))] {
18421842
extern "C" {
18431843
pub fn cfmakeraw(termios: *mut crate::termios) -> c_int;
18441844
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18451845
}
1846-
} else if #[cfg(not(any(
1847-
target_os = "solaris",
1848-
target_os = "illumos",
1849-
target_os = "nto",
1850-
)))] {
1846+
} else if #[cfg(not(any(target_os = "solaris", target_os = "illumos",)))] {
18511847
extern "C" {
18521848
pub fn cfmakeraw(termios: *mut crate::termios);
18531849
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;

0 commit comments

Comments
 (0)