summaryrefslogtreecommitdiff
path: root/src/sys/resource.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2022-03-20 09:26:11 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2022-03-20 09:26:11 -0500
commite3983d16208333b33382e40f116c0de25bb90469 (patch)
treecbbcc45543e1307ed539ea21e64b223053fac24e /src/sys/resource.rs
parentff6f8b8a26c8d61f4341e441acf405402b46a430 (diff)
downloadnix-e3983d16208333b33382e40f116c0de25bb90469.zip
uclibc uses a u32 for RLIMIT definitions
Diffstat (limited to 'src/sys/resource.rs')
-rw-r--r--src/sys/resource.rs4
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 {