diff options
author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-11-17 13:44:21 +0900 |
---|---|---|
committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-11-17 14:00:45 +0900 |
commit | 65b16d9424194caf57a754465d8d2f8263403af9 (patch) | |
tree | 159e691a21b20b89ccc468589e8e8831817d1dfe /build.rs | |
parent | 1f3e2ab7f68670051c58fb12beb5320e3cb8845a (diff) | |
download | rust-libc-65b16d9424194caf57a754465d8d2f8263403af9.tar.gz |
Detect FreeBSD 14
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, } } |