🐛 Include function on all Darwin platforms

Builds the relevant ensure root function on all Apple devices
This commit is contained in:
Malted 2023-06-10 17:45:06 +01:00 committed by Ben
parent 40cc0ba049
commit ba22ebc79f

View file

@ -18,7 +18,7 @@ pub fn ensure_root() {
}
// Check for root user on macOS
#[cfg(target_os = "macos")]
#[cfg(target_vendor = "apple")]
pub fn ensure_root() {
use nix::unistd::Uid;