diff --git a/build.rs b/build.rs index 2ca7c97e18353..61acba646dca0 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 { 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, } } diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index ab5508e33c64a..61474e300d602 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -2624,7 +2624,7 @@ extern "C" { } cfg_if! { - if #[cfg(freebsd13)] { + if #[cfg(any(freebsd13, freebsd14))] { mod freebsd13; pub use self::freebsd13::*; } else if #[cfg(freebsd12)] {