Skip to content

Commit 992e5b1

Browse files
committed
sys: termios: Use associated constants for VMIN and VTIME on sparc64
1 parent c4b2c6f commit 992e5b1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/sys/termios.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,12 @@ libc_enum! {
583583
}
584584
}
585585

586-
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
587-
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
588-
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
589-
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
586+
impl SpecialCharacterIndices {
587+
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
588+
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
589+
#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
590+
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
591+
}
590592

591593
pub use libc::NCCS;
592594
#[cfg(any(target_os = "dragonfly",

0 commit comments

Comments
 (0)