diff options
author | Luca Pizzamiglio <luca.pizzamiglio@gmail.com> | 2019-07-21 18:10:40 +0200 |
---|---|---|
committer | Luca Pizzamiglio <luca.pizzamiglio@gmail.com> | 2019-07-28 23:00:53 +0200 |
commit | 64bc745405116ff5eaa0358fb46bc2233e0756a7 (patch) | |
tree | c9434807623499467459517aa5aff7c1e11040e1 /build.rs | |
parent | bde8b842a48aee64b7a2f1746aebce1013474cf5 (diff) | |
download | rust-libc-64bc745405116ff5eaa0358fb46bc2233e0756a7.tar.gz |
Properly define freebsd11 attribute
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -16,6 +16,9 @@ fn main() { } if env::var("LIBC_CI").is_ok() { + if let Some(11) = which_freebsd() { + println!("cargo:rustc-cfg=freebsd11"); + } if let Some(12) = which_freebsd() { println!("cargo:rustc-cfg=freebsd12"); } |