From d99e1485787f4ecd91586129031b1cec3c3cc72c Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Fri, 1 Nov 2019 00:59:52 +0100 Subject: 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(+) (limited to 'src/sys/termios.rs') diff --git a/src/sys/termios.rs b/src/sys/termios.rs index 4dea8a93..80c73c9c 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", -- cgit v1.2.3