diff --git a/src/uu/nohup/src/nohup.rs b/src/uu/nohup/src/nohup.rs index c64f7bf71..a93f1ba70 100644 --- a/src/uu/nohup/src/nohup.rs +++ b/src/uu/nohup/src/nohup.rs @@ -200,7 +200,12 @@ extern "C" { fn _vprocmgr_detach_from_console(flags: u32) -> *const libc::c_int; } -#[cfg(any(target_os = "linux", target_os = "android", target_os = "freebsd"))] +#[cfg(any( + target_os = "linux", + target_os = "android", + target_os = "freebsd", + target_os = "openbsd" +))] unsafe fn _vprocmgr_detach_from_console(_: u32) -> *const libc::c_int { std::ptr::null() }