From e85d4eda4c29fbc56685e45ef23d2a140496101d Mon Sep 17 00:00:00 2001 From: LMJW Date: Mon, 5 Oct 2020 01:22:45 +1100 Subject: [PATCH] Remove freebsd dubplicated enum RLIMIT_VMEM(alias RLIMIT_AS) --- src/sys/resource.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys/resource.rs b/src/sys/resource.rs index 75f7aad921..ef63c91cc9 100644 --- a/src/sys/resource.rs +++ b/src/sys/resource.rs @@ -49,8 +49,8 @@ cfg_if! { pub enum Resource { /// See detail of each Resource https://man7.org/linux/man-pages/man2/getrlimit.2.html /// BSD specific Resource https://www.freebsd.org/cgi/man.cgi?query=setrlimit - #[cfg(not(target_os = "netbsd"))] - RLIMIT_AS, // not in the libc for netbsd + #[cfg(not(any(target_os = "netbsd", target_os = "freebsd")))] + RLIMIT_AS, RLIMIT_CORE, RLIMIT_CPU, RLIMIT_DATA,