From 5b39d1fc6a03f57a43d2ae7cf181a61847182c9d Mon Sep 17 00:00:00 2001 From: Liam Snow Date: Tue, 3 Feb 2026 18:06:39 +0000 Subject: [PATCH] ulimit: add illumos to platforms missing MEMLOCK/NPROC limits Part of #12410 --- src/builtins/ulimit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/ulimit.rs b/src/builtins/ulimit.rs index a1640ef71..cd7fe0136 100644 --- a/src/builtins/ulimit.rs +++ b/src/builtins/ulimit.rs @@ -24,7 +24,7 @@ pub mod common { pub const DATA: libc::c_int = libc::RLIMIT_DATA as _; pub const FSIZE: libc::c_int = libc::RLIMIT_FSIZE as _; cfg_if!( - if #[cfg(cygwin)] { + if #[cfg(any(cygwin, target_os = "illumos"))] { pub const MEMLOCK: libc::c_int = -1; } else { pub const MEMLOCK: libc::c_int = libc::RLIMIT_MEMLOCK as _; @@ -34,7 +34,7 @@ pub mod common { pub const STACK: libc::c_int = libc::RLIMIT_STACK as _; pub const CPU: libc::c_int = libc::RLIMIT_CPU as _; cfg_if!( - if #[cfg(cygwin)] { + if #[cfg(any(cygwin, target_os = "illumos"))] { pub const NPROC: libc::c_int = -1; } else { pub const NPROC: libc::c_int = libc::RLIMIT_NPROC as _;