Skip to content

Commit 732267a

Browse files
author
mounten
committed
added cfsetspeed definition for target_os = nto and target_env = nto80
1 parent 8f5684a commit 732267a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/unix/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,11 +1837,21 @@ cfg_if! {
18371837
if #[cfg(any(target_os = "aix", target_os = "nto"))] {
18381838
extern "C" {
18391839
pub fn cfmakeraw(termios: *mut crate::termios) -> c_int;
1840-
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18411840
}
18421841
} else if #[cfg(not(any(target_os = "solaris", target_os = "illumos",)))] {
18431842
extern "C" {
18441843
pub fn cfmakeraw(termios: *mut crate::termios);
1844+
}
1845+
}
1846+
}
1847+
1848+
cfg_if! {
1849+
if #[cfg(any(target_os = "aix", all(target_os = "nto", target_env = "nto80")))] {
1850+
extern "C" {
1851+
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
1852+
}
1853+
} else if #[cfg(not(any(target_os = "solaris", target_os = "illumos",)))] {
1854+
extern "C" {
18451855
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18461856
}
18471857
}

0 commit comments

Comments
 (0)