Skip to content

Commit

Permalink
Add os detection for netbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 26, 2015
1 parent 07fe948 commit c78f4af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
("android", "unix", "")
} else if target.contains("unknown-freebsd") {
("freebsd", "unix", "")
} else if target.contains("netbsd") {
("netbsd", "unix", "")
} else {
panic!("unknown os/family width: {}", target)
};
Expand Down

0 comments on commit c78f4af

Please sign in to comment.