diff --git a/sys/arch/hp300/include/aout_machdep.h b/sys/arch/hp300/include/aout_machdep.h index 186797e26ead..351503f03893 100644 --- a/sys/arch/hp300/include/aout_machdep.h +++ b/sys/arch/hp300/include/aout_machdep.h @@ -24,12 +24,14 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: aout_machdep.h,v 1.3 1993/06/04 01:12:04 cgd Exp $ + * $Id: aout_machdep.h,v 1.4 1993/08/19 14:34:25 mycroft Exp $ */ #ifndef _HP300_EXEC_H_ #define _HP300_EXEC_H_ +#ifdef KERNEL + #ifdef HPUXCOMPAT #include "user.h" /* for pcb */ #include "hp300/hpux/hpux_exec.h" @@ -41,7 +43,7 @@ * The standard executable formats are taken care of automatically; * machine-specific ones can be defined using this function. */ -#define cpu_exec_makecmds(p,epp) ENOEXEC +int cpu_exec_makecmds __P((struct proc *p, struct exec_package *epp)); /* * the following function/macro checks to see if a given machine @@ -55,4 +57,6 @@ #define cpu_exec_checkmid(mid) ((mid == MID_HP200) || (mid == MID_HP300))) #endif +#endif /* KERNEL */ + #endif /* _HP300_EXEC_H_ */ diff --git a/sys/arch/hp300/include/exec.h b/sys/arch/hp300/include/exec.h index 49443569946c..7be6e60dc228 100644 --- a/sys/arch/hp300/include/exec.h +++ b/sys/arch/hp300/include/exec.h @@ -24,12 +24,14 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: exec.h,v 1.3 1993/06/04 01:12:04 cgd Exp $ + * $Id: exec.h,v 1.4 1993/08/19 14:34:25 mycroft Exp $ */ #ifndef _HP300_EXEC_H_ #define _HP300_EXEC_H_ +#ifdef KERNEL + #ifdef HPUXCOMPAT #include "user.h" /* for pcb */ #include "hp300/hpux/hpux_exec.h" @@ -41,7 +43,7 @@ * The standard executable formats are taken care of automatically; * machine-specific ones can be defined using this function. */ -#define cpu_exec_makecmds(p,epp) ENOEXEC +int cpu_exec_makecmds __P((struct proc *p, struct exec_package *epp)); /* * the following function/macro checks to see if a given machine @@ -55,4 +57,6 @@ #define cpu_exec_checkmid(mid) ((mid == MID_HP200) || (mid == MID_HP300))) #endif +#endif /* KERNEL */ + #endif /* _HP300_EXEC_H_ */