Skip to content

Commit 6b57a5a

Browse files
bors[bot]glaubitz
andauthored
Merge #1150
1150: sys: termios: Define VMIN and VTIME as VEOF and VEOL on sparc64 r=asomers a=glaubitz 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 Co-authored-by: John Paul Adrian Glaubitz <[email protected]>
2 parents 7a5248c + d99e148 commit 6b57a5a

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)