Skip to content

Commit

Permalink
sys: termios: Define VMIN and VTIME as VEOF and VEOL on sparc64
Browse files Browse the repository at this point in the history
On sparc64, glibc defines VMIN as VEOF and VTIME as VEOL for
termios, so we need to inherit these alias definitions for
nix-rust as well.

Fixes #1149
  • Loading branch information
glaubitz committed Oct 31, 2019
1 parent 7a5248c commit d99e148
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sys/termios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ libc_enum! {
}
}

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

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

0 comments on commit d99e148

Please sign in to comment.