Skip to content

Commit

Permalink
Remove freebsd dubplicated enum RLIMIT_VMEM(alias RLIMIT_AS)
Browse files Browse the repository at this point in the history
  • Loading branch information
LMJW committed Oct 4, 2020
1 parent f829c7f commit e85d4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/resource.rs
Expand Up @@ -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,
Expand Down

0 comments on commit e85d4ed

Please sign in to comment.