Skip to content

Commit

Permalink
feat(runtime): sys_info.rs - Use KERN_OSRELEASE on {Free,Open}BSD (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
VlkrS committed Jul 22, 2023
1 parent 5a3dbe1 commit 60d3c4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/ops/os/sys_info.rs
Expand Up @@ -57,7 +57,11 @@ pub fn os_release() -> String {
_ => String::from(""),
}
}
#[cfg(target_vendor = "apple")]
#[cfg(any(
target_vendor = "apple",
target_os = "freebsd",
target_os = "openbsd"
))]
{
let mut s = [0u8; 256];
let mut mib = [libc::CTL_KERN, libc::KERN_OSRELEASE];
Expand Down

0 comments on commit 60d3c4c

Please sign in to comment.