Skip to content

Commit e5eefe9

Browse files
committed
Remove freebsd dubplicated enum RLIMIT_VMEM(alias RLIMIT_AS)
1 parent 5686fa1 commit e5eefe9

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
@@ -49,8 +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-
#[cfg(not(target_os = "netbsd"))]
53-
RLIMIT_AS, // not in the libc for netbsd
52+
#[cfg(not(any(target_os = "netbsd", target_os = "freebsd")))]
53+
RLIMIT_AS,
5454
RLIMIT_CORE,
5555
RLIMIT_CPU,
5656
RLIMIT_DATA,

0 commit comments

Comments
 (0)