diff --git a/sys/arch/amd64/amd64/netbsd32_machdep.c b/sys/arch/amd64/amd64/netbsd32_machdep.c index d7fd0fbf8d24..e11ce0b1cf1e 100644 --- a/sys/arch/amd64/amd64/netbsd32_machdep.c +++ b/sys/arch/amd64/amd64/netbsd32_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_machdep.c,v 1.8 2004/02/11 01:01:37 matt Exp $ */ +/* $NetBSD: netbsd32_machdep.c,v 1.9 2004/02/20 18:11:16 drochner Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -36,9 +36,10 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.8 2004/02/11 01:01:37 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.9 2004/02/20 18:11:16 drochner Exp $"); #include "opt_compat_netbsd.h" +#include "opt_execfmt.h" #include "opt_user_ldt.h" #include @@ -81,6 +82,19 @@ static int check_sigcontext32(const struct netbsd32_sigcontext *, struct trapframe *); static int check_mcontext32(const mcontext32_t *, struct trapframe *); +#ifdef EXEC_AOUT +/* + * There is no native a.out -- this function is required + * for i386 a.out emulation (COMPAT_NETBSD32+EXEC_AOUT). + */ +int +cpu_exec_aout_makecmds(struct proc *p, struct exec_package *e) +{ + + return ENOEXEC; +} +#endif + void netbsd32_setregs(struct lwp *l, struct exec_package *pack, u_long stack) {