Skip to content

Commit 6b41975

Browse files
mountenJohnTitor
authored andcommitted
added cfsetspeed definition for target_os = nto and target_env = nto80
1 parent 2880788 commit 6b41975

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
@@ -1841,11 +1841,28 @@ cfg_if! {
18411841
if #[cfg(any(target_os = "aix", target_os = "nto"))] {
18421842
extern "C" {
18431843
pub fn cfmakeraw(termios: *mut crate::termios) -> c_int;
1844-
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18451844
}
18461845
} else if #[cfg(not(any(target_os = "solaris", target_os = "illumos",)))] {
18471846
extern "C" {
18481847
pub fn cfmakeraw(termios: *mut crate::termios);
1848+
}
1849+
}
1850+
}
1851+
1852+
cfg_if! {
1853+
if #[cfg(any(
1854+
target_os = "aix",
1855+
all(target_os = "nto", target_env = "nto80")
1856+
))] {
1857+
extern "C" {
1858+
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
1859+
}
1860+
} else if #[cfg(not(any(
1861+
target_os = "solaris",
1862+
target_os = "illumos",
1863+
target_os = "nto"
1864+
)))] {
1865+
extern "C" {
18491866
pub fn cfsetspeed(termios: *mut crate::termios, speed: crate::speed_t) -> c_int;
18501867
}
18511868
}

0 commit comments

Comments
 (0)