Skip to content

Commit

Permalink
[skip ci] add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Jun 4, 2022
1 parent baac43e commit c1dd649
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bfffs-core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ fn main() {
println!("cargo:rerun-if-changed=build.rs");

let utsname = uname().unwrap();
// XXX: this only checks kernel version, so it doesn't work properly in a
// jail. Checking userland would be more accurate, but that would pull in
// bindgen with all its many dependencies.
if utsname.sysname() == "FreeBSD" {
let major = utsname.release()
.to_str()
Expand Down

0 comments on commit c1dd649

Please sign in to comment.