Skip to content

Commit baf718d

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

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/unix/mod.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,11 +1837,28 @@ 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(
1850+
target_os = "aix",
1851+
all(target_os = "nto", target_env = "nto80")
1852+
))] {
1853+
extern "C" {
1854+
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
1855+
}
1856+
} else if #[cfg(not(any(
1857+
target_os = "solaris",
1858+
target_os = "illumos",
1859+
target_os = "nto"
1860+
)))] {
1861+
extern "C" {
18451862
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18461863
}
18471864
}

0 commit comments

Comments
 (0)