summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-21 14:59:43 +0000
committerbde <bde@FreeBSD.org>1996-09-21 14:59:43 +0000
commit9bcb122232e4319fd67ee59c7cd43611d5e2fc60 (patch)
treee03f53db0e9dc53fdad8b0a593af598744be17da /sys/gnu
parent178a446971cddf750d684ed6f842b14faed1c64e (diff)
downloadFreeBSD-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/gnu')
-rw-r--r--sys/gnu/isdn/isdn_ioctl.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/gnu/isdn/isdn_ioctl.h b/sys/gnu/isdn/isdn_ioctl.h
index 64fe163..8ac0c1e 100644
--- a/sys/gnu/isdn/isdn_ioctl.h
+++ b/sys/gnu/isdn/isdn_ioctl.h
@@ -1,6 +1,6 @@
-/* @(#)$Id: isdn_ioctl.h,v 1.3 1995/11/16 10:44:48 bde Exp $
+/* @(#)$Id: isdn_ioctl.h,v 1.4 1996/06/12 05:02:22 gpalmer Exp $
*******************************************************************************
- * II - Version 0.1 $Revision: 1.3 $ $State: Exp $
+ * II - Version 0.1 $Revision: 1.4 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,11 @@
*
*******************************************************************************
* $Log: isdn_ioctl.h,v $
+ * Revision 1.4 1996/06/12 05:02:22 gpalmer
+ * Clean up -Wunused warnings.
+ *
+ * Reviewed by: bde
+ *
* Revision 1.3 1995/11/16 10:44:48 bde
* Completed function declarations.
*
@@ -32,6 +37,13 @@
*
******************************************************************************/
+#ifndef _GNU_ISDN_ISDN_IOCTL_H_
+#define _GNU_ISDN_ISDN_IOCTL_H_
+
+#ifndef KERNEL
+#include <sys/types.h>
+#endif
+#include <sys/ioccom.h>
#pragma pack (1)
typedef struct
@@ -205,3 +217,5 @@ int ity_input __P((int no, int len, char *buf, int dir));
int ity_out __P((int no, char *buf, int len));
#endif /* KERNEL */
+
+#endif /* !_GNU_ISDN_ISDN_IOCTL_H_ */
OpenPOWER on IntegriCloud