diff options
author | peter <peter@FreeBSD.org> | 2001-01-19 12:49:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-01-19 12:49:21 +0000 |
commit | 8f5a6de0b62bf1be534914ddf0b7c32f5b2f1e19 (patch) | |
tree | 537458d2e93b2019974b888ee32aae6e144f4bf0 /usr.sbin/config/mkoptions.c | |
parent | ba149939207ce4c206d58e687022953e98b9c07f (diff) | |
download | FreeBSD-src-8f5a6de0b62bf1be534914ddf0b7c32f5b2f1e19.zip FreeBSD-src-8f5a6de0b62bf1be534914ddf0b7c32f5b2f1e19.tar.gz |
Implement option strings that we can use in #ifdefs (where unavoidable)
as a replacement for the evil #define NFOO. If 'device npx' is in the
static kernel, a synthetic option '#define DEV_NPX 1' will be available
to stick in an opt_xxx.h file. "#if NNPX > 0" can be replaced with
"#ifdef DEV_NPX" and we can get rid of the overloaded meaning of the
device count mechanism.
Diffstat (limited to 'usr.sbin/config/mkoptions.c')
-rw-r--r-- | usr.sbin/config/mkoptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/config/mkoptions.c b/usr.sbin/config/mkoptions.c index 9496ca4..4f9e2a1 100644 --- a/usr.sbin/config/mkoptions.c +++ b/usr.sbin/config/mkoptions.c @@ -115,7 +115,7 @@ options(void) for (ol = otab; ol != 0; ol = ol->o_next) do_option(ol->o_name); for (op = opt; op; op = op->op_next) { - if (!op->op_ownfile) { + if (!op->op_ownfile && strncmp(op->op_name, "DEV_", 4)) { printf("%s:%d: unknown option \"%s\"\n", PREFIX, op->op_line, op->op_name); exit(1); |