diff options
author | phk <phk@FreeBSD.org> | 2000-11-20 22:00:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-11-20 22:00:25 +0000 |
commit | cbb487db93a39cd9bc9ce67e31ff29f8f418f44f (patch) | |
tree | 53e1bedad39476dcf573b45589056d96ff1f06e6 /sys/alpha | |
parent | 313ae312145fc5c8754180c37d7d860150f3e99d (diff) | |
download | FreeBSD-src-cbb487db93a39cd9bc9ce67e31ff29f8f418f44f.zip FreeBSD-src-cbb487db93a39cd9bc9ce67e31ff29f8f418f44f.tar.gz |
Make programs which still #include <machine/{mouse,console}.h> fail
at compiletime, with an explanatory error message. Previously they
would only get a warning.
These files will be finally removed 2001-01-15
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/include/console.h | 11 | ||||
-rw-r--r-- | sys/alpha/include/mouse.h | 4 |
2 files changed, 2 insertions, 13 deletions
diff --git a/sys/alpha/include/console.h b/sys/alpha/include/console.h index 79ff98f..2a9f369 100644 --- a/sys/alpha/include/console.h +++ b/sys/alpha/include/console.h @@ -1,14 +1,5 @@ /* $FreeBSD$ */ - -#ifndef _MACHINE_CONSOLE_H_ -#define _MACHINE_CONSOLE_H_ - #if __GNUC__ -#warning "this file includes <machine/console.h> which is deprecated, use <sys/{kb,cons,fb}io.h> instead" +#error "this file includes <machine/console.h> which is deprecated, use <sys/{kb,cons,fb}io.h> instead" #endif -#include <sys/fbio.h> -#include <sys/kbio.h> -#include <sys/consio.h> - -#endif /* !_MACHINE_CONSOLE_H_ */ diff --git a/sys/alpha/include/mouse.h b/sys/alpha/include/mouse.h index b1f5130..1aded0d 100644 --- a/sys/alpha/include/mouse.h +++ b/sys/alpha/include/mouse.h @@ -1,6 +1,4 @@ /* $FreeBSD$ */ #if __GNUC__ -#warning "this file includes <machine/mouse.h> which is deprecated, use <sys/mouse.h> instead" +#error "this file includes <machine/mouse.h> which is deprecated, use <sys/mouse.h> instead" #endif - -#include <sys/mouse.h> |