summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_ext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_ext.c b/sys/arch/i386/isa/pcvt/pcvt_ext.c
index eed6cbee866..6730ccd2a3e 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_ext.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_ext.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_ext.c,v 1.15 1998/06/30 20:51:09 millert Exp $ */
+/* $OpenBSD: pcvt_ext.c,v 1.16 1998/07/19 10:47:53 downsj Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -2781,14 +2781,14 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
*/
{
-#if defined(COMPAT_10) || defined(COMPAT_11)
+#if defined(COMPAT_10) || defined(COMPAT_11) || defined(COMPAT_LINUX)
struct trapframe *fp = (struct trapframe *)p->p_md.md_regs;
#endif
if (suser(p->p_ucred, &p->p_acflag) || securelevel > 1)
return (EPERM);
-#if defined(COMPAT_10) || defined(COMPAT_11)
+#if defined(COMPAT_10) || defined(COMPAT_11) || defined(COMPAT_LINUX)
/* This is done by i386_iopl(3) now. */
fp->tf_eflags |= PSL_IOPL;
#endif
@@ -2800,7 +2800,7 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
/* abandon IO access permission */
{
-#if defined(COMPAT_10) || defined(COMPAT_11)
+#if defined(COMPAT_10) || defined(COMPAT_11) || defined(COMPAT_LINUX)
/* This is done by i386_iopl(3) now. */
struct trapframe *fp = (struct trapframe *)p->p_md.md_regs;
fp->tf_eflags &= ~PSL_IOPL;