From 0033eabc1bfccaa5b6791400e4ba6ff9c191c034 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 21 Jun 2004 22:57:16 +0000 Subject: Put the pre FreeBSD-2.x tty compat code under BURN_BRIDGES. --- sys/dev/sio/sio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/dev/sio/sio.c') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index a716883..50a0ccb 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -2065,16 +2065,19 @@ sioioctl(dev, cmd, data, flag, td) int mynor; int s; struct tty *tp; +#ifndef BURN_BRIDGES #if defined(COMPAT_43) u_long oldcmd; struct termios term; #endif +#endif mynor = minor(dev); com = dev->si_drv1; if (com == NULL || com->gone) return (ENODEV); tp = com->tp; +#ifndef BURN_BRIDGES #if defined(COMPAT_43) term = tp->t_termios; oldcmd = cmd; @@ -2084,6 +2087,7 @@ sioioctl(dev, cmd, data, flag, td) if (cmd != oldcmd) data = (caddr_t)&term; #endif +#endif if (cmd == TIOCSETA || cmd == TIOCSETAW || cmd == TIOCSETAF) { int cc; struct termios *dt = (struct termios *)data; -- cgit v1.1