Skip to content

Commit ac0e2b6

Browse files
neuschaefertgross35
authored andcommitted
freebsd: Limit P_IDLEPROC to FreeBSD 15
`P_IDLEPROC` was introduced in FreeBSD 15, in commit 33be1632047c ("racct: Fix accounting of CPU time for the system idle process"). freebsd/freebsd-src@33be163
1 parent 33b0290 commit ac0e2b6

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4150,6 +4150,7 @@ pub const P_CONTROLT: c_int = 0x00000002;
41504150
pub const P_KPROC: c_int = 0x00000004;
41514151
#[deprecated(since = "1.0", note = "Replaced in FreeBSD 15 by P_IDLEPROC")]
41524152
pub const P_UNUSED3: c_int = 0x00000008;
4153+
#[cfg(freebsd15)]
41534154
pub const P_IDLEPROC: c_int = 0x00000008;
41544155
pub const P_PPWAIT: c_int = 0x00000010;
41554156
pub const P_PROFIL: c_int = 0x00000020;

0 commit comments

Comments
 (0)