Skip to content

Commit 5aa6ccd

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

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/unix/mod.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,11 +1837,24 @@ 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(target_os = "solaris", target_os = "illumos",)))] {
1857+
extern "C" {
18451858
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18461859
}
18471860
}

0 commit comments

Comments
 (0)