Skip to content

Commit

Permalink
sys: termios: Use associated constants for VMIN and VTIME on sparc64
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubitz committed Nov 2, 2019
1 parent c4b2c6f commit c7c1beb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sys/termios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,10 @@ libc_enum! {
}

#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
impl SpecialCharacterIndices {
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
}

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

0 comments on commit c7c1beb

Please sign in to comment.