File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2641,7 +2641,7 @@ fn test_freebsd(target: &str) {
2641
2641
"TDF_CANSWAP" | "TDF_SWAPINREQ" => true ,
2642
2642
2643
2643
// Unaccessible in FreeBSD 15
2644
- "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" => true ,
2644
+ "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" | "P_UNUSED3" => true ,
2645
2645
2646
2646
// Removed in FreeBSD 14 (git a6b55ee6be1)
2647
2647
"IFF_KNOWSEPOCH" => true ,
@@ -3062,6 +3062,8 @@ fn test_freebsd(target: &str) {
3062
3062
// `tcp_snd_wscale` and `tcp_rcv_wscale` are bitfields
3063
3063
( "tcp_info" , "tcp_snd_wscale" ) => true ,
3064
3064
( "tcp_info" , "tcp_rcv_wscale" ) => true ,
3065
+ // mc_spare can change in size between OS releases. It's a spare field, after all.
3066
+ ( "__mcontext" , "mc_spare" ) => true ,
3065
3067
3066
3068
_ => false ,
3067
3069
}
Original file line number Diff line number Diff line change @@ -4217,7 +4217,9 @@ pub const TDI_IWAIT: c_int = 0x0010;
4217
4217
pub const P_ADVLOCK : c_int = 0x00000001 ;
4218
4218
pub const P_CONTROLT : c_int = 0x00000002 ;
4219
4219
pub const P_KPROC : c_int = 0x00000004 ;
4220
+ #[ deprecated( since = "1.0" , note = "Replaced in FreeBSD 15 by P_IDLEPROC" ) ]
4220
4221
pub const P_UNUSED3 : c_int = 0x00000008 ;
4222
+ pub const P_IDLEPROC : c_int = 0x00000008 ;
4221
4223
pub const P_PPWAIT : c_int = 0x00000010 ;
4222
4224
pub const P_PROFIL : c_int = 0x00000020 ;
4223
4225
pub const P_STOPPROF : c_int = 0x00000040 ;
You can’t perform that action at this time.
0 commit comments