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