Skip to content

Commit d99e148

Browse files
committed
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
1 parent 7a5248c commit d99e148

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sys/termios.rs

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

586+
#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
587+
pub const VMIN: SpecialCharacterIndices = SpecialCharacterIndices::VEOF;
588+
#[cfg(not(all(target_os = "linux", target_arch = "sparc64")))]
589+
pub const VTIME: SpecialCharacterIndices = SpecialCharacterIndices::VEOL;
590+
586591
pub use libc::NCCS;
587592
#[cfg(any(target_os = "dragonfly",
588593
target_os = "freebsd",

0 commit comments

Comments
 (0)