git: a6e1727fb8ac - stable/15 - sys/sysctl.h: Make it self-contained when included from the kernel
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Mar 2026 14:44:07 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=a6e1727fb8ac3d9b1b7a5862bb7d7965674da69f
commit a6e1727fb8ac3d9b1b7a5862bb7d7965674da69f
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-02-06 15:02:39 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-03-05 14:43:23 +0000
sys/sysctl.h: Make it self-contained when included from the kernel
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 1a446f765d9cb34e8137ffa6dbb71ce551560cc1)
---
sys/sys/sysctl.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 902f5bde9c37..139b4bc5d9da 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -36,7 +36,8 @@
#define _SYS_SYSCTL_H_
#ifdef _KERNEL
-#include <sys/cdefs.h>
+#include <sys/types.h>
+#include <sys/_null.h>
#include <sys/queue.h>
#include <sys/tree.h>
#endif