Skip to content

Commit

Permalink
Merge pull request #374 from YOU54F/patch-1
Browse files Browse the repository at this point in the history
fix: netbsd - uname requires arg in 3.8.0
  • Loading branch information
stanislav-tkach committed Mar 16, 2024
2 parents 9e3bf69 + 62a4aeb commit 452c3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_info/src/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{architecture, bitness, uname::uname, Info, Type, Version};
pub fn current_platform() -> Info {
trace!("netbsd::current_platform is called");

let version = uname()
let version = uname("-o")
.map(Version::from_string)
.unwrap_or_else(|| Version::Unknown);

Expand Down

0 comments on commit 452c3bc

Please sign in to comment.