diff --git a/src/uu/id/src/id.rs b/src/uu/id/src/id.rs index 8b16ba8b7..b8fb51d79 100644 --- a/src/uu/id/src/id.rs +++ b/src/uu/id/src/id.rs @@ -507,7 +507,7 @@ fn pline(possible_uid: Option) { ); } -#[cfg(any(target_os = "linux", target_os = "android"))] +#[cfg(any(target_os = "linux", target_os = "android", target_os = "openbsd"))] fn pline(possible_uid: Option) { let uid = possible_uid.unwrap_or_else(getuid); let pw = Passwd::locate(uid).unwrap(); @@ -524,10 +524,10 @@ fn pline(possible_uid: Option) { ); } -#[cfg(any(target_os = "linux", target_os = "android"))] +#[cfg(any(target_os = "linux", target_os = "android", target_os = "openbsd"))] fn auditid() {} -#[cfg(not(any(target_os = "linux", target_os = "android")))] +#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "openbsd")))] fn auditid() { use std::mem::MaybeUninit; @@ -624,7 +624,7 @@ fn id_print(state: &State, groups: &[u32]) { } } -#[cfg(not(any(target_os = "linux", target_os = "android")))] +#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "openbsd")))] mod audit { use super::libc::{c_int, c_uint, dev_t, pid_t, uid_t};