From e2aa1c868cf04855469be0153669abfd448e1b12 Mon Sep 17 00:00:00 2001 From: Olivier Certner Date: Wed, 15 Jan 2025 15:29:31 +0100 Subject: sysutils/procs: Unbreak on CURRENT This is upstream's fix, so will automatically appear in next versions. It allows compilation on all supported FreeBSD versions. PR: 283410 Reviewed by: emaste Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- sysutils/procs/files/patch-src_columns_state.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sysutils/procs/files/patch-src_columns_state.rs (limited to 'sysutils/procs/files/patch-src_columns_state.rs') diff --git a/sysutils/procs/files/patch-src_columns_state.rs b/sysutils/procs/files/patch-src_columns_state.rs new file mode 100644 index 000000000000..ce5c7bdbbeb3 --- /dev/null +++ b/sysutils/procs/files/patch-src_columns_state.rs @@ -0,0 +1,13 @@ +This is upstream's fix. To be removed at the next update. + +--- src/columns/state.rs.orig 2024-10-23 10:22:18 UTC ++++ src/columns/state.rs +@@ -129,7 +129,7 @@ impl Column for State { + if (flag & libc::P_SYSTEM as i64) != 0 || info.lock > 0 { + state.push_str("L"); + } +- if (cr_flags & bsd_kvm_sys::CRED_FLAG_CAPMODE) != 0 { ++ if (cr_flags & libc::KI_CRF_CAPABILITY_MODE as u32) != 0 { + state.push_str("C"); + } + if (kiflag & libc::KI_SLEADER as i64) != 0 { -- cgit v1.2.3