diff options
author | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2019-11-01 00:59:52 +0100 |
---|---|---|
committer | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2019-11-01 00:59:52 +0100 |
commit | d99e1485787f4ecd91586129031b1cec3c3cc72c (patch) | |
tree | 223e956c1180372c894ea5f41ee5fa5043d72dba /src/sys/termios.rs | |
parent | 7a5248c70a4ad0ef1ff1b385a7674b38403386df (diff) | |
download | nix-d99e1485787f4ecd91586129031b1cec3c3cc72c.zip |
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
Diffstat (limited to 'src/sys/termios.rs')
-rw-r--r-- | src/sys/termios.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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", |