diff options
-rw-r--r-- | sys/sys/conf.h | 8 | ||||
-rw-r--r-- | sys/sys/linedisc.h | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 55959f6..3d156a4 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -44,6 +44,7 @@ #ifndef _SYS_CONF_H_ #define _SYS_CONF_H_ +#ifdef _KERNEL #include <sys/eventhandler.h> struct tty; @@ -161,6 +162,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag)); BIO_STRATEGY(&(bp)->b_io, dummy); \ } while (0) +#endif /* _KERNEL */ + /* * Types for d_flags. */ @@ -169,6 +172,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag)); #define D_TTY 0x0004 #define D_MEM 0x0008 +#ifdef _KERNEL + #define D_TYPEMASK 0xffff /* @@ -217,14 +222,13 @@ struct linesw { u_char l_hotchar; }; -#ifdef _KERNEL extern struct linesw linesw[]; extern int nlinesw; int ldisc_register __P((int , struct linesw *)); void ldisc_deregister __P((int)); #define LDISC_LOAD -1 /* Loadable line discipline */ -#endif +#endif /* _KERNEL */ /* * Swap device table diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index 55959f6..3d156a4 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -44,6 +44,7 @@ #ifndef _SYS_CONF_H_ #define _SYS_CONF_H_ +#ifdef _KERNEL #include <sys/eventhandler.h> struct tty; @@ -161,6 +162,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag)); BIO_STRATEGY(&(bp)->b_io, dummy); \ } while (0) +#endif /* _KERNEL */ + /* * Types for d_flags. */ @@ -169,6 +172,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag)); #define D_TTY 0x0004 #define D_MEM 0x0008 +#ifdef _KERNEL + #define D_TYPEMASK 0xffff /* @@ -217,14 +222,13 @@ struct linesw { u_char l_hotchar; }; -#ifdef _KERNEL extern struct linesw linesw[]; extern int nlinesw; int ldisc_register __P((int , struct linesw *)); void ldisc_deregister __P((int)); #define LDISC_LOAD -1 /* Loadable line discipline */ -#endif +#endif /* _KERNEL */ /* * Swap device table |