diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-03-20 09:26:11 -0500 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-03-20 09:26:11 -0500 |
commit | e3983d16208333b33382e40f116c0de25bb90469 (patch) | |
tree | cbbcc45543e1307ed539ea21e64b223053fac24e /src/sys | |
parent | ff6f8b8a26c8d61f4341e441acf405402b46a430 (diff) | |
download | nix-e3983d16208333b33382e40f116c0de25bb90469.zip |
uclibc uses a u32 for RLIMIT definitions
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/resource.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/resource.rs b/src/sys/resource.rs index fca7418b..76ceaf5b 100644 --- a/src/sys/resource.rs +++ b/src/sys/resource.rs @@ -39,7 +39,7 @@ libc_enum! { // // https://gcc.gnu.org/legacy-ml/gcc/2015-08/msg00441.html // https://github.com/rust-lang/libc/blob/master/src/unix/linux_like/linux/gnu/mod.rs - #[cfg_attr(all(target_os = "linux", target_env = "gnu"), repr(u32))] + #[cfg_attr(all(target_os = "linux", any(target_env = "gnu", target_env = "uclibc")), repr(u32))] #[cfg_attr(any( target_os = "freebsd", target_os = "openbsd", @@ -48,7 +48,7 @@ libc_enum! { target_os = "ios", target_os = "android", target_os = "dragonfly", - all(target_os = "linux", not(target_env = "gnu")) + all(target_os = "linux", not(any(target_env = "gnu", target_env = "uclibc"))) ), repr(i32))] #[non_exhaustive] pub enum Resource { |