File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ fn main() {
31
31
Some ( 11 ) if libc_ci => println ! ( "cargo:rustc-cfg=freebsd11" ) ,
32
32
Some ( 12 ) if libc_ci => println ! ( "cargo:rustc-cfg=freebsd12" ) ,
33
33
Some ( 13 ) if libc_ci => println ! ( "cargo:rustc-cfg=freebsd13" ) ,
34
+ Some ( 14 ) if libc_ci => println ! ( "cargo:rustc-cfg=freebsd14" ) ,
34
35
Some ( _) | None => println ! ( "cargo:rustc-cfg=freebsd11" ) ,
35
36
}
36
37
@@ -150,6 +151,7 @@ fn which_freebsd() -> Option<i32> {
150
151
s if s. starts_with ( "11" ) => Some ( 11 ) ,
151
152
s if s. starts_with ( "12" ) => Some ( 12 ) ,
152
153
s if s. starts_with ( "13" ) => Some ( 13 ) ,
154
+ s if s. starts_with ( "14" ) => Some ( 14 ) ,
153
155
_ => None ,
154
156
}
155
157
}
Original file line number Diff line number Diff line change @@ -1756,6 +1756,7 @@ fn test_freebsd(target: &str) {
1756
1756
Some ( 11 ) => cfg. cfg ( "freebsd11" , None ) ,
1757
1757
Some ( 12 ) => cfg. cfg ( "freebsd12" , None ) ,
1758
1758
Some ( 13 ) => cfg. cfg ( "freebsd13" , None ) ,
1759
+ Some ( 14 ) => cfg. cfg ( "freebsd14" , None ) ,
1759
1760
_ => & mut cfg,
1760
1761
} ;
1761
1762
Original file line number Diff line number Diff line change @@ -2624,7 +2624,7 @@ extern "C" {
2624
2624
}
2625
2625
2626
2626
cfg_if ! {
2627
- if #[ cfg( freebsd13) ] {
2627
+ if #[ cfg( any ( freebsd13, freebsd14 ) ) ] {
2628
2628
mod freebsd13;
2629
2629
pub use self :: freebsd13:: * ;
2630
2630
} else if #[ cfg( freebsd12) ] {
You can’t perform that action at this time.
0 commit comments