File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments