Skip to content

Commit 59b7fec

Browse files
authored
Merge pull request #4513 from Gelbpunkt/nccs-ppc
musl: Fix definition of NCCS on powerpc(64)
2 parents 5303c3a + f8e5a84 commit 59b7fec

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)