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 @@ -2574,7 +2574,7 @@ fn test_freebsd(target: &str) {
25742574 "TDF_CANSWAP" | "TDF_SWAPINREQ" => true ,
25752575
25762576 // Unaccessible in FreeBSD 15
2577- "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" => true ,
2577+ "TDI_SWAPPED" | "P_SWAPPINGOUT" | "P_SWAPPINGIN" | "P_UNUSED3" => true ,
25782578
25792579 // Removed in FreeBSD 14 (git a6b55ee6be1)
25802580 "IFF_KNOWSEPOCH" => true ,
@@ -2986,6 +2986,8 @@ fn test_freebsd(target: &str) {
29862986 // `tcp_snd_wscale` and `tcp_rcv_wscale` are bitfields
29872987 ( "tcp_info" , "tcp_snd_wscale" ) => true ,
29882988 ( "tcp_info" , "tcp_rcv_wscale" ) => true ,
2989+ // mc_spare can change in size between OS releases. It's a spare field, after all.
2990+ ( "__mcontext" , "mc_spare" ) => true ,
29892991
29902992 _ => false ,
29912993 }
Original file line number Diff line number Diff line change @@ -4186,7 +4186,9 @@ pub const TDI_IWAIT: c_int = 0x0010;
41864186pub const P_ADVLOCK : c_int = 0x00000001 ;
41874187pub const P_CONTROLT : c_int = 0x00000002 ;
41884188pub const P_KPROC : c_int = 0x00000004 ;
4189+ #[ deprecated( since = "1.0" , note = "Replaced in FreeBSD 15 by P_IDLEPROC" ) ]
41894190pub const P_UNUSED3 : c_int = 0x00000008 ;
4191+ pub const P_IDLEPROC : c_int = 0x00000008 ;
41904192pub const P_PPWAIT : c_int = 0x00000010 ;
41914193pub const P_PROFIL : c_int = 0x00000020 ;
41924194pub const P_STOPPROF : c_int = 0x00000040 ;
You can’t perform that action at this time.
0 commit comments