diff options
author | bde <bde@FreeBSD.org> | 1996-09-21 14:59:43 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-21 14:59:43 +0000 |
commit | 9bcb122232e4319fd67ee59c7cd43611d5e2fc60 (patch) | |
tree | e03f53db0e9dc53fdad8b0a593af598744be17da /sys/dev/ppbus/lptio.h | |
parent | 178a446971cddf750d684ed6f842b14faed1c64e (diff) | |
download | FreeBSD-src-9bcb122232e4319fd67ee59c7cd43611d5e2fc60.zip FreeBSD-src-9bcb122232e4319fd67ee59c7cd43611d5e2fc60.tar.gz |
Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h>
instead. This was already done in 4.4Lite for the most important
ioctl headers. Header spam currently increases kernel build
times by 10-20%. There are more than 30000 #includes (not counting
duplicates) for compiling LINT.
- include <sys/types.h> if and only it is necessary to make the header
almost self-sufficient (some ioctl headers still need structs from
elsewhere).
- uniformized idempotency ifdefs. Copied the style in the 4.4Lite
ioctl headers.
Diffstat (limited to 'sys/dev/ppbus/lptio.h')
-rw-r--r-- | sys/dev/ppbus/lptio.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/ppbus/lptio.h b/sys/dev/ppbus/lptio.h index a203c7d..14ea3d3 100644 --- a/sys/dev/ppbus/lptio.h +++ b/sys/dev/ppbus/lptio.h @@ -11,15 +11,14 @@ * * Geoff Rehmet, Rhodes University, South Africa <csgr@cs.ru.ac.za> * - * $Id: lpt.h,v 1.2 1994/08/02 07:38:52 davidg Exp $ + * $Id: lpt.h,v 1.3 1995/05/30 08:00:41 rgrimes Exp $ */ -#ifndef _LPT_PRINTER_H_ -#define _LPT_PRINTER_H_ +#ifndef _MACHINE_LPT_H_ +#define _MACHINE_LPT_H_ -#include <sys/types.h> -#include <sys/ioctl.h> +#include <sys/ioccom.h> #define LPT_IRQ _IOW('p', 1, long) /* set interrupt status */ -#endif +#endif /* !_MACHINE_LPT_H_ */ |