Skip to content

Commit 30b04c5

Browse files
bors[bot]glaubitz
andauthored
Merge #1151
1151: sys: termios: Fix inverted logic for [cfg()] conditional for sparc64 r=asomers a=glaubitz 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. Co-authored-by: John Paul Adrian Glaubitz <[email protected]>
2 parents 418ba35 + c7c1beb commit 30b04c5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/sys/termios.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,11 @@ libc_enum! {
583583
}
584584
}
585585

586-
#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
587-
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
588-
#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
589-
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
586+
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
587+
impl SpecialCharacterIndices {
588+
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
589+
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
590+
}
590591

591592
pub use libc::NCCS;
592593
#[cfg(any(target_os = "dragonfly",

0 commit comments

Comments
 (0)