summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/termios.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs
index 80c73c9c..d08b2541 100644
--- a/src/sys/termios.rs
+++ b/src/sys/termios.rs
@@ -583,10 +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;
+#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
+impl SpecialCharacterIndices {
+ pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
+ pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
+}
pub use libc::NCCS;
#[cfg(any(target_os = "dragonfly",