summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorLuca Pizzamiglio <luca.pizzamiglio@gmail.com>2019-07-21 18:10:40 +0200
committerLuca Pizzamiglio <luca.pizzamiglio@gmail.com>2019-07-28 23:00:53 +0200
commit64bc745405116ff5eaa0358fb46bc2233e0756a7 (patch)
treec9434807623499467459517aa5aff7c1e11040e1 /build.rs
parentbde8b842a48aee64b7a2f1746aebce1013474cf5 (diff)
downloadrust-libc-64bc745405116ff5eaa0358fb46bc2233e0756a7.tar.gz
Properly define freebsd11 attribute
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index c43cca36d2..f355447a67 100644
--- a/build.rs
+++ b/build.rs
@@ -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");
}