diff options
author | Jonah Petri <jonah@petri.us> | 2021-12-07 16:57:52 -0500 |
---|---|---|
committer | Jonah Petri <jonah@petri.us> | 2022-01-24 10:06:35 -0500 |
commit | 6c4b9133f14d4488dc1b86411568b49e99fbe629 (patch) | |
tree | ec06e25f28ac2f989b1af4408d00407b9e548258 /src/sys/ptrace | |
parent | ae2b7b3552f3b800ab0f5e92dad06cd2e7df25e6 (diff) | |
download | nix-6c4b9133f14d4488dc1b86411568b49e99fbe629.zip |
uclibc support
Diffstat (limited to 'src/sys/ptrace')
-rw-r--r-- | src/sys/ptrace/linux.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sys/ptrace/linux.rs b/src/sys/ptrace/linux.rs index fb6ff199..24152d7d 100644 --- a/src/sys/ptrace/linux.rs +++ b/src/sys/ptrace/linux.rs @@ -20,7 +20,8 @@ use libc::user_regs_struct; cfg_if! { if #[cfg(any(all(target_os = "linux", target_arch = "s390x"), - all(target_os = "linux", target_env = "gnu")))] { + all(target_os = "linux", target_env = "gnu"), + target_env = "uclibc"))] { #[doc(hidden)] pub type RequestType = ::libc::c_uint; } else { @@ -30,8 +31,8 @@ cfg_if! { } libc_enum!{ - #[cfg_attr(not(any(target_env = "musl", target_os = "android")), repr(u32))] - #[cfg_attr(any(target_env = "musl", target_os = "android"), repr(i32))] + #[cfg_attr(not(any(target_env = "musl", target_env = "uclibc", target_os = "android")), repr(u32))] + #[cfg_attr(any(target_env = "musl", target_env = "uclibc", target_os = "android"), repr(i32))] /// Ptrace Request enum defining the action to be taken. #[non_exhaustive] pub enum Request { |