@@ -1091,12 +1091,8 @@ extern {
1091
1091
pub fn tcdrain ( fd : :: c_int ) -> :: c_int ;
1092
1092
pub fn cfgetispeed ( termios : * const :: termios ) -> :: speed_t ;
1093
1093
pub fn cfgetospeed ( termios : * const :: termios ) -> :: speed_t ;
1094
- #[ cfg( not( any( target_os = "solaris" , target_os = "illumos" ) ) ) ]
1095
- pub fn cfmakeraw ( termios : * mut :: termios ) ;
1096
1094
pub fn cfsetispeed ( termios : * mut :: termios , speed : :: speed_t ) -> :: c_int ;
1097
1095
pub fn cfsetospeed ( termios : * mut :: termios , speed : :: speed_t ) -> :: c_int ;
1098
- #[ cfg( not( any( target_os = "solaris" , target_os = "illumos" ) ) ) ]
1099
- pub fn cfsetspeed ( termios : * mut :: termios , speed : :: speed_t ) -> :: c_int ;
1100
1096
pub fn tcgetattr ( fd : :: c_int , termios : * mut :: termios ) -> :: c_int ;
1101
1097
pub fn tcsetattr ( fd : :: c_int ,
1102
1098
optional_actions : :: c_int ,
@@ -1129,6 +1125,16 @@ extern {
1129
1125
stream : * mut FILE ) -> ssize_t ;
1130
1126
}
1131
1127
1128
+ cfg_if ! {
1129
+ if #[ cfg( not( any( target_os = "solaris" , target_os = "illumos" ) ) ) ] {
1130
+ extern {
1131
+ pub fn cfmakeraw( termios: * mut :: termios) ;
1132
+ pub fn cfsetspeed( termios: * mut :: termios,
1133
+ speed: :: speed_t) -> :: c_int;
1134
+ }
1135
+ }
1136
+ }
1137
+
1132
1138
cfg_if ! {
1133
1139
if #[ cfg( target_env = "uclibc" ) ] {
1134
1140
mod uclibc;
0 commit comments