diff --git a/src/utils.rs b/src/utils.rs index 44fd91bc..b8028244 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,7 +1,7 @@ use log::trace; use std::env; -#[cfg(any(target_os = "freebsd", target_os = "linux"))] +#[cfg(any(target_os = "freebsd", target_os = "linux", target_os = "openbsd"))] fn get_shell_ffi() -> Option { use libc::{geteuid, getpwuid_r}; use std::{ffi::CStr, mem, ptr};