diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-21 22:57:16 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-21 22:57:16 +0000 |
| commit | ec66f15d146303c217f7e2f4802d7baba606b9d7 (patch) | |
| tree | f2e674a8767cfdecab4ee0f2ac7afc0fb32c978f /sys/dev/sx | |
| parent | 139233cbd6cd6400dbaadd5d167691860824d4e9 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sx')
| -rw-r--r-- | sys/dev/sx/sx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/sx/sx.c b/sys/dev/sx/sx.c index 0e0687e63f8a..8a523fa378b7 100644 --- a/sys/dev/sx/sx.c +++ b/sys/dev/sx/sx.c @@ -35,9 +35,11 @@ #include <sys/param.h> #include <sys/systm.h> +#ifndef BURN_BRIDGES #if defined(COMPAT_43) #include <sys/ioctl_compat.h> #endif +#endif #include <sys/tty.h> #include <sys/proc.h> #include <sys/conf.h> @@ -703,11 +705,13 @@ sxioctl( int mynor = minor(dev); int oldspl; int blocked = 0; +#ifndef BURN_BRIDGES #if defined(COMPAT_43) u_long oldcmd; struct termios term; #endif +#endif pp = MINOR2PP(mynor); tp = pp->sp_tty; @@ -752,6 +756,7 @@ sxioctl( /* * Do the old-style ioctl compat routines... */ +#ifndef BURN_BRIDGES #if defined(COMPAT_43) term = tp->t_termios; oldcmd = cmd; @@ -761,6 +766,7 @@ sxioctl( if (cmd != oldcmd) data = (caddr_t)&term; #endif +#endif /* * Do the initial / lock state business */ @@ -796,9 +802,11 @@ sxioctl( case TIOCSETAW: case TIOCSETAF: case TIOCDRAIN: +#ifndef BURN_BRIDGES #ifdef COMPAT_43 case TIOCSETP: #endif +#endif blocked++; /* block writes for ttywait() and sxparam() */ sx_write_enable(pp, 0); } |
