diff options
author | phk <phk@FreeBSD.org> | 2004-06-21 22:57:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-21 22:57:16 +0000 |
commit | 0033eabc1bfccaa5b6791400e4ba6ff9c191c034 (patch) | |
tree | f2e674a8767cfdecab4ee0f2ac7afc0fb32c978f /sys/dev/digi/digi.c | |
parent | a5b5031c524a9ecf5ee118337e7392768ee986c3 (diff) | |
download | FreeBSD-src-0033eabc1bfccaa5b6791400e4ba6ff9c191c034.zip FreeBSD-src-0033eabc1bfccaa5b6791400e4ba6ff9c191c034.tar.gz |
Put the pre FreeBSD-2.x tty compat code under BURN_BRIDGES.
Diffstat (limited to 'sys/dev/digi/digi.c')
-rw-r--r-- | sys/dev/digi/digi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c index 2d9184c..19b6cfe1 100644 --- a/sys/dev/digi/digi.c +++ b/sys/dev/digi/digi.c @@ -1072,10 +1072,12 @@ digiioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t struct digi_softc *sc; struct digi_p *port; struct tty *tp; +#ifndef BURN_BRIDGES #if defined(COMPAT_43) int oldcmd; struct termios term; #endif +#endif mynor = minor(dev); unit = MINOR_TO_UNIT(mynor); @@ -1226,6 +1228,7 @@ digiioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t } tp = port->tp; +#ifndef BURN_BRIDGES #if defined(COMPAT_43) term = tp->t_termios; oldcmd = cmd; @@ -1235,6 +1238,7 @@ digiioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t if (cmd != oldcmd) data = (caddr_t) & term; #endif +#endif if (cmd == TIOCSETA || cmd == TIOCSETAW || cmd == TIOCSETAF) { int cc; struct termios *dt; |