diff options
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 6c5f4d5..bb35a78 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -83,9 +83,11 @@ __FBSDID("$FreeBSD$"); #include <sys/mutex.h> #include <sys/namei.h> #include <sys/sx.h> +#ifndef BURN_BRIDGES #if defined(COMPAT_43) #include <sys/ioctl_compat.h> #endif +#endif #include <sys/proc.h> #define TTYDEFCHARS #include <sys/tty.h> @@ -769,6 +771,7 @@ ttioctl(struct tty *tp, u_long cmd, void *data, int flag) case TIOCSTI: case TIOCSTOP: case TIOCSWINSZ: +#ifndef BURN_BRIDGES #if defined(COMPAT_43) case TIOCLBIC: case TIOCLBIS: @@ -779,6 +782,7 @@ ttioctl(struct tty *tp, u_long cmd, void *data, int flag) case TIOCSETP: case TIOCSLTC: #endif +#endif sx_slock(&proctree_lock); PROC_LOCK(p); while (isbackground(p, tp) && !(p->p_flag & P_PPWAIT) && @@ -1131,10 +1135,14 @@ ttioctl(struct tty *tp, u_long cmd, void *data, int flag) break; default: #if defined(COMPAT_43) +#ifndef BURN_BRIDGES return (ttcompat(tp, cmd, data, flag)); #else return (ENOIOCTL); #endif +#else + return (ENOIOCTL); +#endif } return (0); } |