diff options
Diffstat (limited to 'usr.sbin/crunch/crunchide')
-rw-r--r-- | usr.sbin/crunch/crunchide/Makefile | 6 | ||||
-rw-r--r-- | usr.sbin/crunch/crunchide/crunchide.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/crunch/crunchide/Makefile b/usr.sbin/crunch/crunchide/Makefile index b03e1f5..8af6b33 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 <bsd.prog.mk> diff --git a/usr.sbin/crunch/crunchide/crunchide.c b/usr.sbin/crunch/crunchide/crunchide.c index 9d2772f..6b3bd92 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 |