From d99e1485787f4ecd91586129031b1cec3c3cc72c Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Fri, 1 Nov 2019 00:59:52 +0100 Subject: [PATCH] sys: termios: Define VMIN and VTIME as VEOF and VEOL on sparc64 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 --- src/sys/termios.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sys/termios.rs b/src/sys/termios.rs index 4dea8a931f..80c73c9cdf 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -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",