git: 41068268ec48 - main - libsysdecode: Fix decoding of SCHED_ flags

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Mon, 16 May 2022 18:57:59 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=41068268ec480e58811a86787b60914709375b3f

commit 41068268ec480e58811a86787b60914709375b3f
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-05-16 18:57:48 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-05-16 18:57:48 +0000

    libsysdecode: Fix decoding of SCHED_ flags
    
    Use sys/sched.h where SCHED_ flags are defined.
    
    Reviewed by:            emaste
    Differential revision:  https://reviews.freebsd.org/D35208
    MFC after:              2 weeks
---
 lib/libsysdecode/mktables | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libsysdecode/mktables b/lib/libsysdecode/mktables
index 6b0b56c3b705..6bac6ff93b8d 100644
--- a/lib/libsysdecode/mktables
+++ b/lib/libsysdecode/mktables
@@ -123,7 +123,7 @@ gen_table "rebootopt"       "RB_[A-Z]+[[:space:]]+0x[0-9]+"                "sys/
 gen_table "rforkflags"      "RF[A-Z]+[[:space:]]+\([0-9]+<<[0-9]+\)"       "sys/unistd.h"
 gen_table "rlimit"          "RLIMIT_[A-Z]+[[:space:]]+[0-9]+"              "sys/resource.h"
 gen_table "rusage"          "RUSAGE_[A-Z]+[[:space:]]+[-0-9]+"             "sys/resource.h"
-gen_table "schedpolicy"     "SCHED_[A-Z]+[[:space:]]+[0-9]+"               "sched.h"
+gen_table "schedpolicy"     "SCHED_[A-Z]+[[:space:]]+[0-9]+"               "sys/sched.h"
 gen_table "sendfileflags"   "SF_[A-Z]+[[:space:]]+[0-9]+"                  "sys/socket.h"
 gen_table "shmatflags"      "SHM_[A-Z]+[[:space:]]+[0-9]{6}"               "sys/shm.h"
 gen_table "shutdownhow"     "SHUT_[A-Z]+[[:space:]]+[0-9]+"                "sys/socket.h"