From 5e4da720ae50427da69d4ce4925dd76c569c7d54 Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Tue, 23 Sep 2025 13:09:57 +0000 Subject: [PATCH] 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 --- src/sys/ptrace/linux.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sys/ptrace/linux.rs b/src/sys/ptrace/linux.rs index d067ef5789..66372ea6d0 100644 --- a/src/sys/ptrace/linux.rs +++ b/src/sys/ptrace/linux.rs @@ -24,8 +24,7 @@ pub type AddressType = *mut ::libc::c_void; use libc::user_regs_struct; cfg_if! { - if #[cfg(any(all(target_os = "linux", target_arch = "s390x"), - all(target_os = "linux", target_env = "gnu"), + if #[cfg(any(all(target_os = "linux", target_env = "gnu"), target_env = "uclibc"))] { #[doc(hidden)] pub type RequestType = ::libc::c_uint;