diff options
author | nate <nate@FreeBSD.org> | 1996-03-19 04:49:13 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-03-19 04:49:13 +0000 |
commit | b10555454e573b2dcc7c0d03059ffa2ad6a30b8f (patch) | |
tree | 30485098fe75c960fabb33516cebd2156f2afda5 | |
parent | ebbb96df5dd5aa4740d33043b7be12012c68415c (diff) | |
download | FreeBSD-src-b10555454e573b2dcc7c0d03059ffa2ad6a30b8f.zip FreeBSD-src-b10555454e573b2dcc7c0d03059ffa2ad6a30b8f.tar.gz |
Added kernel compile time failure if more than one APM device is
configured.
-rw-r--r-- | sys/i386/apm/apm.c | 6 | ||||
-rw-r--r-- | sys/i386/bios/apm.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index 2f7b9a0..081a1ad 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -13,11 +13,15 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.32 1996/03/18 23:30:14 nate Exp $ + * $Id: apm.c,v 1.33 1996/03/19 04:39:53 nate Exp $ */ #include "apm.h" +#if NAPM > 1 +#error only one APM device may be configured +#endif + #include <sys/param.h> #include <sys/conf.h> #include <sys/kernel.h> diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index 2f7b9a0..081a1ad 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -13,11 +13,15 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.32 1996/03/18 23:30:14 nate Exp $ + * $Id: apm.c,v 1.33 1996/03/19 04:39:53 nate Exp $ */ #include "apm.h" +#if NAPM > 1 +#error only one APM device may be configured +#endif + #include <sys/param.h> #include <sys/conf.h> #include <sys/kernel.h> |