Skip to content

Commit 76d4a8e

Browse files
Gelbpunkttgross35
authored andcommitted
musl: Fix definition of NCCS on powerpc(64)
These overwrite the value with their own. https://git.musl-libc.org/cgit/musl/tree/arch/powerpc/bits/termios.h#n2 https://git.musl-libc.org/cgit/musl/tree/arch/powerpc64/bits/termios.h#n2 Signed-off-by: Jens Reidel <[email protected]> (backport <#4513>) (cherry picked from commit f8e5a84)
1 parent 31c595a commit 76d4a8e

File tree

1 file changed

+3
-0
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+3
-0
lines changed

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,10 @@ pub const ACCOUNTING: c_short = 9;
599599

600600
pub const SFD_CLOEXEC: c_int = 0x080000;
601601

602+
#[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))]
602603
pub const NCCS: usize = 32;
604+
#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
605+
pub const NCCS: usize = 19;
603606

604607
pub const O_TRUNC: c_int = 512;
605608
pub const O_NOATIME: c_int = 0o1000000;

0 commit comments

Comments
 (0)