diff --git a/usr.sbin/crunch/crunchide/Makefile b/usr.sbin/crunch/crunchide/Makefile index b03e1f583933..8af6b33516f4 100644 --- a/usr.sbin/crunch/crunchide/Makefile +++ b/usr.sbin/crunch/crunchide/Makefile @@ -1,6 +1,10 @@ # $FreeBSD$ PROG= crunchide -SRCS= crunchide.c exec_aout.c exec_elf32.c exec_elf64.c +SRCS= crunchide.c exec_elf32.c exec_elf64.c + +.if ${MACHINE_ARCH} == i386 +SRCS+= exec_aout.c +.endif .include diff --git a/usr.sbin/crunch/crunchide/crunchide.c b/usr.sbin/crunch/crunchide/crunchide.c index 9d2772fd9268..6b3bd92059a6 100644 --- a/usr.sbin/crunch/crunchide/crunchide.c +++ b/usr.sbin/crunch/crunchide/crunchide.c @@ -1,4 +1,5 @@ /* $NetBSD: crunchide.c,v 1.8 1997/11/01 06:51:45 lukem Exp $ */ +/* $FreeBSD$ */ /* * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved. * Copyright (c) 1994 University of Maryland @@ -207,9 +208,11 @@ struct { int (*check)(int, const char *); /* 1 if match, zero if not */ int (*hide)(int, const char *); /* non-zero if error */ } exec_formats[] = { +#ifdef __i386__ #ifdef NLIST_AOUT { "a.out", check_aout, hide_aout, }, #endif +#endif #ifdef NLIST_ECOFF { "ECOFF", check_elf64, hide_elf64, }, #endif