Skip to content

Commit

Permalink
Merge pull request #796 from MikaelUrankar/freebsd
Browse files Browse the repository at this point in the history
Fix build on FreeBSD
  • Loading branch information
JojiiOfficial committed Feb 8, 2021
2 parents 5fcdbb9 + a352eab commit 1032694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Expand Up @@ -3,7 +3,7 @@ use std::env;
#[cfg(target_os = "macos")]
use whoami;

#[cfg(target_os = "linux")]
#[cfg(any(target_os = "freebsd", target_os = "linux"))]
fn get_shell_ffi() -> Option<String> {
use libc::{geteuid, getpwuid_r};
use std::{ffi::CStr, mem, ptr};
Expand Down

0 comments on commit 1032694

Please sign in to comment.