Skip to content

Commit f8e5a84

Browse files
committed
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 <adrian@travitia.xyz>
1 parent 5303c3a commit f8e5a84

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
@@ -600,7 +600,10 @@ pub const ACCOUNTING: c_short = 9;
600600

601601
pub const SFD_CLOEXEC: c_int = 0x080000;
602602

603+
#[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))]
603604
pub const NCCS: usize = 32;
605+
#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
606+
pub const NCCS: usize = 19;
604607

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

0 commit comments

Comments
 (0)