summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-23 02:56:26 +0000
committerderaadt <deraadt@openbsd.org>1996-12-23 02:56:26 +0000
commita59e7bba4742bb685edd6460ea0b794efd5b236c (patch)
tree03781481f9e170bd4a2831a667919732fb664099
parentuse _{NLIST,KERN}_DO_{AOUT,ELF,ECOFF} to select binary types (diff)
downloadwireguard-openbsd-a59e7bba4742bb685edd6460ea0b794efd5b236c.tar.xz
wireguard-openbsd-a59e7bba4742bb685edd6460ea0b794efd5b236c.zip
i think this fixes COMPAT_ULTRIX
-rw-r--r--sys/arch/arc/arc/cpu_exec.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/arch/arc/arc/cpu_exec.c b/sys/arch/arc/arc/cpu_exec.c
index 4e3e657011a..5a57459e139 100644
--- a/sys/arch/arc/arc/cpu_exec.c
+++ b/sys/arch/arc/arc/cpu_exec.c
@@ -66,9 +66,8 @@ cpu_exec_aout_makecmds(p, epp)
return ENOEXEC;
}
-#ifdef COMPAT_ULTRIX
-extern struct emul emul_ultrix;
+#if defined(_KERN_DO_ECOFF)
void
cpu_exec_ecoff_setregs(p, pack, stack, retval)
struct proc *p;
@@ -92,13 +91,18 @@ cpu_exec_ecoff_setregs(p, pack, stack, retval)
*
*/
int
-cpu_exec_ecoff_hook(p, epp, eap)
+cpu_exec_ecoff_hook(p, epp)
struct proc *p;
struct exec_package *epp;
- struct ecoff_aouthdr *eap;
{
+#ifdef COMPAT_ULTRIX
+ extern struct emul emul_ultrix;
+#endif
+#if defined(COMPAT_ULTRIX)
epp->ep_emul = &emul_ultrix;
+#endif
return 0;
}
-#endif
+
+#endif /* _KERN_DO_ECOFF */