Skip to content

Commit f829c7f

Browse files
committed
Fix netbsd compile error
1 parent 553758d commit f829c7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sys/resource.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ cfg_if! {
4949
pub enum Resource {
5050
/// See detail of each Resource https://man7.org/linux/man-pages/man2/getrlimit.2.html
5151
/// BSD specific Resource https://www.freebsd.org/cgi/man.cgi?query=setrlimit
52-
RLIMIT_AS,
52+
#[cfg(not(target_os = "netbsd"))]
53+
RLIMIT_AS, // not in the libc for netbsd
5354
RLIMIT_CORE,
5455
RLIMIT_CPU,
5556
RLIMIT_DATA,

0 commit comments

Comments
 (0)