Skip to content

Commit

Permalink
Fix build on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelUrankar committed Jan 25, 2021
1 parent 68c52ea commit a352eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
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 a352eab

Please sign in to comment.