Skip to content

Commit 3bba75f

Browse files
mountentgross35
authored andcommitted
added cfsetspeed definition for target_os = nto and target_env = nto80
(backport <#4704>) (cherry picked from commit 6e1b073)
1 parent b7daada commit 3bba75f

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
@@ -1828,11 +1828,28 @@ cfg_if! {
18281828
if #[cfg(any(target_os = "aix", target_os = "nto"))] {
18291829
extern "C" {
18301830
pub fn cfmakeraw(termios: *mut crate::termios) -> c_int;
1831-
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18321831
}
18331832
} else if #[cfg(not(any(target_os = "solaris", target_os = "illumos",)))] {
18341833
extern "C" {
18351834
pub fn cfmakeraw(termios: *mut crate::termios);
1835+
}
1836+
}
1837+
}
1838+
1839+
cfg_if! {
1840+
if #[cfg(any(
1841+
target_os = "aix",
1842+
all(target_os = "nto", target_env = "nto80")
1843+
))] {
1844+
extern "C" {
1845+
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
1846+
}
1847+
} else if #[cfg(not(any(
1848+
target_os = "solaris",
1849+
target_os = "illumos",
1850+
target_os = "nto"
1851+
)))] {
1852+
extern "C" {
18361853
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18371854
}
18381855
}

0 commit comments

Comments
 (0)