Skip to content

Commit

Permalink
Fix netbsd compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
LMJW committed Oct 4, 2020
1 parent 553758d commit f829c7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sys/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +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
RLIMIT_AS,
#[cfg(not(target_os = "netbsd"))]
RLIMIT_AS, // not in the libc for netbsd
RLIMIT_CORE,
RLIMIT_CPU,
RLIMIT_DATA,
Expand Down

0 comments on commit f829c7f

Please sign in to comment.