Skip to content

Commit

Permalink
Mark consts to be ignored depending on freebsd version
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 19, 2021
1 parent e66a88c commit f89ac14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libc-test/build.rs
Expand Up @@ -2063,6 +2063,11 @@ fn test_freebsd(target: &str) {

"VM_TOTAL" if Some(11) == freebsd_ver => true,

// Added in FreeBSD 14.
"KERN_STACKTOP" if Some(14) > freebsd_ver => true,
// Added in FreeBSD 12.
"KERN_MAXPHYS" if Some(12) > freebsd_ver => true,

_ => false,
}
});
Expand Down

0 comments on commit f89ac14

Please sign in to comment.