Skip to content

Commit c7c1beb

Browse files
committed
sys: termios: Use associated constants for VMIN and VTIME on sparc64
1 parent c4b2c6f commit c7c1beb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sys/termios.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,10 @@ libc_enum! {
584584
}
585585

586586
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
587-
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
588-
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
589-
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
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)