git: 5c1461a2b0fd - main - libsysdecode: use local sysdecode.h

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Mon, 27 Jul 2026 07:51:24 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5c1461a2b0fdf845292681aa46b56c620da57e25

commit 5c1461a2b0fdf845292681aa46b56c620da57e25
Author:     Ishan Agrawal <iagrawal9990@gmail.com>
AuthorDate: 2026-07-24 13:27:59 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-07-27 07:24:49 +0000

    libsysdecode: use local sysdecode.h
    
    Replace <sysdecode.h> with "sysdecode.h" so local builds use the in-tree header
    in lib/libsysdecode instead of a stale installed copy in /usr/include, avoiding
    build failures after updating sysdecode.h.
    
    Signed-off-by:  Ishan Agrawal <iagrawal9990@gmail.com>
    Sponsored-by:   Google LLC (GSoC 2026)
    Reviewed by:    kp
    Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2338
---
 lib/libsysdecode/flags.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libsysdecode/flags.c b/lib/libsysdecode/flags.c
index 90bebde4dc2b..f94fb88ebf83 100644
--- a/lib/libsysdecode/flags.c
+++ b/lib/libsysdecode/flags.c
@@ -63,7 +63,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <strings.h>
-#include <sysdecode.h>
 #include <unistd.h>
 #include <sys/bitstring.h>
 #include <netgraph/bluetooth/include/ng_hci.h>
@@ -73,6 +72,7 @@
 #include <netlink/netlink.h>
 
 #include "support.h"
+#include "sysdecode.h"
 
 #define	X(a)	{ a, #a },
 #define	XEND	{ 0, NULL }