File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1837,11 +1837,21 @@ cfg_if! {
1837
1837
if #[ cfg( any( target_os = "aix" , target_os = "nto" ) ) ] {
1838
1838
extern "C" {
1839
1839
pub fn cfmakeraw( termios: * mut crate :: termios) -> c_int;
1840
- pub fn cfsetspeed( termios: * mut crate :: termios, speed: crate :: speed_t) -> c_int;
1841
1840
}
1842
1841
} else if #[ cfg( not( any( target_os = "solaris" , target_os = "illumos" , ) ) ) ] {
1843
1842
extern "C" {
1844
1843
pub fn cfmakeraw( termios: * mut crate :: termios) ;
1844
+ }
1845
+ }
1846
+ }
1847
+
1848
+ cfg_if ! {
1849
+ if #[ cfg( any( target_os = "aix" , all( target_os = "nto" , target_env = "nto80" ) ) ) ] {
1850
+ extern "C" {
1851
+ pub fn cfsetspeed( termios: * mut crate :: termios, speed: crate :: speed_t) -> c_int;
1852
+ }
1853
+ } else if #[ cfg( not( any( target_os = "solaris" , target_os = "illumos" , ) ) ) ] {
1854
+ extern "C" {
1845
1855
pub fn cfsetspeed( termios: * mut crate :: termios, speed: crate :: speed_t) -> c_int;
1846
1856
}
1847
1857
}
You can’t perform that action at this time.
0 commit comments