🐛 Include function on all Darwin platforms
Builds the relevant ensure root function on all Apple devices
This commit is contained in:
parent
40cc0ba049
commit
ba22ebc79f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue