From 04e8b672c852d872cc214c6745d7cddca1d5080c Mon Sep 17 00:00:00 2001 From: wkoszek Date: Wed, 16 May 2007 16:08:04 +0000 Subject: Handle !INCLUDE_CONFIG_FILE entirely in the kernel. This should make some developers happy, since it will let them to use old config(8) with newer kernels. Reviewed by: imp Approved by: imp --- sys/kern/kern_mib.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/kern/kern_mib.c') diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 2ccb207..c10e5f2 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$"); #include "opt_posix.h" +#include "opt_config.h" #include #include @@ -296,8 +297,12 @@ SYSCTL_PROC(_kern, KERN_SECURELVL, securelevel, CTLTYPE_INT|CTLFLAG_RW|CTLFLAG_PRISON, 0, 0, sysctl_kern_securelvl, "I", "Current secure level"); +#ifdef INCLUDE_CONFIG_FILE /* Actual kernel configuration options. */ extern char kernconfstring[]; +#else +char kernconfstring[] = "\0"; +#endif static int sysctl_kern_config(SYSCTL_HANDLER_ARGS) -- cgit v1.1