Skip to content

Commit c4b2c6f

Browse files
committed
sys: termios: Fix inverted logic for [cfg()] conditional for sparc64
The fix for #1149 has the logic for the [cfg()] conditional inverted so that the aliases for VMIN and VTIME are defined on targets that are not linux-sparc64.
1 parent cfc550f commit c4b2c6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/termios.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,9 @@ libc_enum! {
583583
}
584584
}
585585

586-
#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
586+
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
587587
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
588-
#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
588+
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
589589
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
590590

591591
pub use libc::NCCS;

0 commit comments

Comments
 (0)