Skip to content

Commit 5e4da72

Browse files
committed
ptrace: Fix request type for non-GNU s390x
The type of the ptrace request parameter is architecture-independent in libc and only c_uint for uclibc and glibc on Linux Signed-off-by: Jens Reidel <[email protected]>
1 parent e1e630f commit 5e4da72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sys/ptrace/linux.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +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"),
28-
all(target_os = "linux", target_env = "gnu"),
27+
if #[cfg(any(all(target_os = "linux", target_env = "gnu"),
2928
target_env = "uclibc"))] {
3029
#[doc(hidden)]
3130
pub type RequestType = ::libc::c_uint;

0 commit comments

Comments
 (0)