summaryrefslogtreecommitdiff
path: root/src/sys/termios.rs
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2019-11-01 00:59:52 +0100
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2019-11-01 00:59:52 +0100
commitd99e1485787f4ecd91586129031b1cec3c3cc72c (patch)
tree223e956c1180372c894ea5f41ee5fa5043d72dba /src/sys/termios.rs
parent7a5248c70a4ad0ef1ff1b385a7674b38403386df (diff)
downloadnix-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.rs5
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",