From a352eab53eef0ecafe1ddb07a43ff2b3ab54f123 Mon Sep 17 00:00:00 2001 From: MikaelUrankar Date: Mon, 25 Jan 2021 12:31:42 +0100 Subject: [PATCH] Fix build on FreeBSD --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 1a325395..3d9359ff 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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 { use libc::{geteuid, getpwuid_r}; use std::{ffi::CStr, mem, ptr};