summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-11-17 13:44:21 +0900
committerYuki Okushi <yuki.okushi@huawei.com>2021-11-17 14:00:45 +0900
commit65b16d9424194caf57a754465d8d2f8263403af9 (patch)
tree159e691a21b20b89ccc468589e8e8831817d1dfe /build.rs
parent1f3e2ab7f68670051c58fb12beb5320e3cb8845a (diff)
downloadrust-libc-65b16d9424194caf57a754465d8d2f8263403af9.tar.gz
Detect FreeBSD 14
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index 2ca7c97e18..61acba646d 100644
--- a/build.rs
+++ b/build.rs
@@ -31,6 +31,7 @@ fn main() {
Some(11) if libc_ci => println!("cargo:rustc-cfg=freebsd11"),
Some(12) if libc_ci => println!("cargo:rustc-cfg=freebsd12"),
Some(13) if libc_ci => println!("cargo:rustc-cfg=freebsd13"),
+ Some(14) if libc_ci => println!("cargo:rustc-cfg=freebsd14"),
Some(_) | None => println!("cargo:rustc-cfg=freebsd11"),
}
@@ -150,6 +151,7 @@ fn which_freebsd() -> Option<i32> {
s if s.starts_with("11") => Some(11),
s if s.starts_with("12") => Some(12),
s if s.starts_with("13") => Some(13),
+ s if s.starts_with("14") => Some(14),
_ => None,
}
}