summaryrefslogtreecommitdiff
path: root/src/sys/resource.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-09-04 16:25:52 -0600
committerAlan Somers <asomers@gmail.com>2021-09-04 16:49:16 -0600
commit3a2163a21afdb4b5c950566f2b0dae0185082ff5 (patch)
treec3b7c81e95e1bd8ebbbb118d38d83c2852120454 /src/sys/resource.rs
parent1e8c895e5876b451309735fc81b28ece350d70eb (diff)
downloadnix-3a2163a21afdb4b5c950566f2b0dae0185082ff5.zip
Check Dragonfly BSD and OpenBSD in CI
Build, but don't test, for these operating systems. Thanks to @rtzoeller for the tip. Also, fix the OpenBSD build.
Diffstat (limited to 'src/sys/resource.rs')
-rw-r--r--src/sys/resource.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sys/resource.rs b/src/sys/resource.rs
index c3bf29e8..dd7f8c5c 100644
--- a/src/sys/resource.rs
+++ b/src/sys/resource.rs
@@ -49,7 +49,11 @@ libc_enum! {
), repr(i32))]
#[non_exhaustive]
pub enum Resource {
- #[cfg(not(any(target_os = "netbsd", target_os = "freebsd")))]
+ #[cfg(not(any(
+ target_os = "freebsd",
+ target_os = "netbsd",
+ target_os = "openbsd"
+ )))]
/// The maximum amount (in bytes) of virtual memory the process is
/// allowed to map.
RLIMIT_AS,