Skip to content

Commit e3983d1

Browse files
committed
uclibc uses a u32 for RLIMIT definitions
1 parent ff6f8b8 commit e3983d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/resource.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ libc_enum! {
3939
//
4040
// https://gcc.gnu.org/legacy-ml/gcc/2015-08/msg00441.html
4141
// https://github.com/rust-lang/libc/blob/master/src/unix/linux_like/linux/gnu/mod.rs
42-
#[cfg_attr(all(target_os = "linux", target_env = "gnu"), repr(u32))]
42+
#[cfg_attr(all(target_os = "linux", any(target_env = "gnu", target_env = "uclibc")), repr(u32))]
4343
#[cfg_attr(any(
4444
target_os = "freebsd",
4545
target_os = "openbsd",
@@ -48,7 +48,7 @@ libc_enum! {
4848
target_os = "ios",
4949
target_os = "android",
5050
target_os = "dragonfly",
51-
all(target_os = "linux", not(target_env = "gnu"))
51+
all(target_os = "linux", not(any(target_env = "gnu", target_env = "uclibc")))
5252
), repr(i32))]
5353
#[non_exhaustive]
5454
pub enum Resource {

0 commit comments

Comments
 (0)