summaryrefslogtreecommitdiff
path: root/src/sys/termios.rs
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2019-11-01 11:50:05 +0100
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2019-11-01 11:55:34 +0100
commitc4b2c6fabf4a0c83b68ac033d586f14601b30688 (patch)
tree0b6d5ba98cc2b527f6ef7c90da809fc6806ba6fe /src/sys/termios.rs
parentcfc550f3df6689db1a8c122a5729560a862cdff9 (diff)
downloadnix-c4b2c6fabf4a0c83b68ac033d586f14601b30688.zip
sys: termios: Fix inverted logic for [cfg()] conditional for sparc64
The fix for #1149 has the logic for the [cfg()] conditional inverted so that the aliases for VMIN and VTIME are defined on targets that are not linux-sparc64.
Diffstat (limited to 'src/sys/termios.rs')
-rw-r--r--src/sys/termios.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs
index 80c73c9c..31e7291b 100644
--- a/src/sys/termios.rs
+++ b/src/sys/termios.rs
@@ -583,9 +583,9 @@ libc_enum! {
}
}
-#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
+#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
-#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
+#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
pub use libc::NCCS;