Skip to content

Commit 49225ce

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 (backport <#4640>) (cherry picked from commit ac0e2b6)
1 parent 2a45f3b commit 49225ce

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
@@ -4241,6 +4241,7 @@ pub const P_CONTROLT: c_int = 0x00000002;
42414241
pub const P_KPROC: c_int = 0x00000004;
42424242
#[deprecated(since = "1.0", note = "Replaced in FreeBSD 15 by P_IDLEPROC")]
42434243
pub const P_UNUSED3: c_int = 0x00000008;
4244+
#[cfg(freebsd15)]
42444245
pub const P_IDLEPROC: c_int = 0x00000008;
42454246
pub const P_PPWAIT: c_int = 0x00000010;
42464247
pub const P_PROFIL: c_int = 0x00000020;

0 commit comments

Comments
 (0)