Skip to content

Commit 5e125a1

Browse files
committed
1 parent 29c5b94 commit 5e125a1

File tree

1 file changed

+2
-5
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -584,11 +584,8 @@ pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
584584
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8;
585585
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4;
586586

587-
// FIXME(musl): Value is 1024 for all architectures since 1.2.4
588-
#[cfg(not(target_arch = "loongarch64"))]
589-
pub const CPU_SETSIZE: c_int = 128;
590-
#[cfg(target_arch = "loongarch64")]
591-
pub const CPU_SETSIZE: c_int = 1024;
587+
// Value was changed in 1.2.4
588+
pub const CPU_SETSIZE: c_int = if cfg!(musl_v1_2_3) { 1024 } else { 128 };
592589

593590
pub const PTRACE_TRACEME: c_int = 0;
594591
pub const PTRACE_PEEKTEXT: c_int = 1;

0 commit comments

Comments
 (0)