Skip to content

Commit 1432201

Browse files
committed
ptrace first argument with unsigned int is only for uclibc/Linux glibc.
Fix #2641
1 parent a72936d commit 1432201

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/2648.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ptrace for Linux fix first argument type (u32 to i32) for s390x/musl

src/sys/ptrace/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub type AddressType = *mut ::libc::c_void;
2424
use libc::user_regs_struct;
2525

2626
cfg_if! {
27-
if #[cfg(any(all(target_os = "linux", target_arch = "s390x"),
27+
if #[cfg(any(
2828
all(target_os = "linux", target_env = "gnu"),
2929
target_env = "uclibc"))] {
3030
#[doc(hidden)]

0 commit comments

Comments
 (0)