From eea5876f94d4c122460659d93f5a089d1dd4a945 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 24 Jun 2008 21:08:30 +0000 Subject: MFC: Add 'compat_freebsd[45]' features corresponding to the kernel options COMPAT_FREEBSD[45]. --- sys/kern/kern_mib.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/kern') diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 319651060722..802a4d18d91e 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -38,6 +38,7 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_compat.h" #include "opt_posix.h" #include @@ -304,6 +305,14 @@ SYSCTL_ULONG(_kern, KERN_HOSTID, hostid, CTLFLAG_RW, &hostid, 0, "Host ID"); SYSCTL_NODE(_kern, OID_AUTO, features, CTLFLAG_RD, 0, "Kernel Features"); +#ifdef COMPAT_FREEBSD4 +FEATURE(compat_freebsd4, "Compatible with FreeBSD 4"); +#endif + +#ifdef COMPAT_FREEBSD5 +FEATURE(compat_freebsd5, "Compatible with FreeBSD 5"); +#endif + /* * This is really cheating. These actually live in the libc, something * which I'm not quite sure is a good idea anyway, but in order for -- cgit v1.3