summaryrefslogtreecommitdiffstats
path: root/sys/dev/rp
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-15 08:28:34 +0000
committerbde <bde@FreeBSD.org>2002-02-15 08:28:34 +0000
commit43231742529f1e471666d17109045f321bbf9d14 (patch)
tree9796b8934e5e87535cd2574de70924b2a0707495 /sys/dev/rp
parent0df6a3f7a62b6345231bd417df64332f036df022 (diff)
downloadFreeBSD-src-43231742529f1e471666d17109045f321bbf9d14.zip
FreeBSD-src-43231742529f1e471666d17109045f321bbf9d14.tar.gz
#include "opt_compat.h" so that the support for old ioctls can actually
be compiled. Old tty ioctls are still used (possibly ifdef'ed) in at least the following programs in the src tree: atc des ee fontedit gdb gdbserver lock ntp perl5 tcsh telnet top vttest rp.c: Unremoved used variables so that the support for old ioctls actually compiles. Not tested at runtime by: bde
Diffstat (limited to 'sys/dev/rp')
-rw-r--r--sys/dev/rp/rp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c
index b1a488e..76894fa8 100644
--- a/sys/dev/rp/rp.c
+++ b/sys/dev/rp/rp.c
@@ -36,6 +36,8 @@
* rp.c - for RocketPort FreeBSD
*/
+#include "opt_compat.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/fcntl.h>
@@ -1243,6 +1245,10 @@ rpioctl(dev, cmd, data, flag, td)
int error = 0;
int arg, flags, result, ChanStatus;
struct termios *t;
+#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
+ u_long oldcmd;
+ struct termios term;
+#endif
umynor = (((minor(dev) >> 16) -1) * 32); /* SG */
port = (minor(dev) & 0x1f); /* SG */
OpenPOWER on IntegriCloud