Skip to content

Commit 2cce551

Browse files
authored
Merge pull request #1919 from rbtcollins/master
2 parents cbe11e7 + e9c6804 commit 2cce551

File tree

1 file changed

+6
-0
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+6
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,12 @@ pub const O_RSYNC: ::c_int = 0x00020000;
919919
pub const MS_SYNC: ::c_int = 0x4;
920920
pub const MS_INVALIDATE: ::c_int = 0x2;
921921

922+
// Here because they are not present on OpenBSD
923+
// (https://github.com/openbsd/src/blob/master/sys/sys/resource.h)
924+
pub const RLIMIT_SBSIZE: ::c_int = 9;
925+
pub const RLIMIT_AS: ::c_int = 10;
926+
pub const RLIMIT_NTHR: ::c_int = 11;
927+
922928
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
923929
pub const RLIM_NLIMITS: ::c_int = 12;
924930

0 commit comments

Comments
 (0)