Skip to content

Commit

Permalink
Add illumos targets
Browse files Browse the repository at this point in the history
  • Loading branch information
martintc committed Apr 25, 2022
1 parent 1c71226 commit 70c37c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion os_info/src/illumos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn get_os() -> Type {
.expect("Failed to get OS");

match str::from_utf8(&os.stdout) {
Ok("illumos") => {
Ok("illumos\n") => {
Type::Illumos
},
Ok(_) => {
Expand Down
6 changes: 6 additions & 0 deletions os_info/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ mod imp;
#[path = "freebsd/mod.rs"]
mod imp;

#[cfg(target_os = "illumos")]
#[path = "illumos/mod.rs"]
mod imp;

#[cfg(target_os = "linux")]
#[path = "linux/mod.rs"]
mod imp;
Expand Down Expand Up @@ -55,6 +59,7 @@ mod imp;
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "illumos",
target_os = "linux",
target_os = "macos",
target_os = "netbsd",
Expand All @@ -73,6 +78,7 @@ mod os_type;
#[cfg(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "netbsd",
target_os = "openbsd"
))]
Expand Down

0 comments on commit 70c37c3

Please sign in to comment.