From: Karel Zak Date: Wed, 13 May 2026 08:32:57 +0000 (+0200) Subject: chrt: add missing #ifdef SCHED_FLAG_RESET_ON_FORK guard X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f77b6dcb100f92f2c93907ab1b263340f9892a80;p=thirdparty%2Futil-linux.git chrt: add missing #ifdef SCHED_FLAG_RESET_ON_FORK guard Signed-off-by: Karel Zak --- diff --git a/schedutils/chrt.c b/schedutils/chrt.c index c1895d117..6bf08c5c1 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -221,7 +221,9 @@ static void show_sched_pid_info(struct chrt_ctl *ctl, pid_t pid) policy = sa.sched_policy; prio = sa.sched_priority; +# ifdef SCHED_FLAG_RESET_ON_FORK reset_on_fork = sa.sched_flags & SCHED_FLAG_RESET_ON_FORK; +# endif runtime = sa.sched_runtime; #ifdef SCHED_DEADLINE deadline = sa.sched_deadline;