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 @@ -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 }
You can’t perform that action at this time.
0 commit comments