From 38ea40d0bf2e0d2632a1f0b0c3a428f5c7b40d9c Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Sun, 3 Dec 2023 09:44:19 +0100 Subject: [PATCH] nohup: fix for OpenBSD with _vprocmgr_detach_from_console function --- src/uu/nohup/src/nohup.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() }