From e9c6804523d3f08a75a18937353501362f4920e2 Mon Sep 17 00:00:00 2001
From: Robert Collins <robertc@robertcollins.net>
Date: Sat, 10 Oct 2020 19:21:09 +0200
Subject: [PATCH] Add missing NetBSD RLIMIT_ constants

---
 src/unix/bsd/netbsdlike/netbsd/mod.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index dfa5764e..0c8aa34a 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -919,6 +919,12 @@ pub const O_RSYNC: ::c_int = 0x00020000;
 pub const MS_SYNC: ::c_int = 0x4;
 pub const MS_INVALIDATE: ::c_int = 0x2;
 
+// Here because they are not present on OpenBSD
+// (https://github.com/openbsd/src/blob/master/sys/sys/resource.h)
+pub const RLIMIT_SBSIZE: ::c_int = 9;
+pub const RLIMIT_AS: ::c_int = 10;
+pub const RLIMIT_NTHR: ::c_int = 11;
+
 #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
 pub const RLIM_NLIMITS: ::c_int = 12;
 
-- 
GitLab