fix for non-i386/amd64 machines

Submitted by:	marcel
MFC after:	3 days
This commit is contained in:
Sam Leffler 2006-03-06 02:58:25 +00:00
parent e1457c3eb1
commit c322e13c55
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,10 @@
# $FreeBSD$
PROG= ncpus
SRCS= ncpus.c acpi.c biosmptable.c
SRCS= ncpus.c acpi.c
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
SRCS+= biosmptable.c
.endif
NO_MAN= noman
BINDIR= /usr/local/bin

View File

@ -9,6 +9,8 @@ int
main(int argc, char *argv[])
{
printf("acpi: %d\n", acpi_detect());
#if defined(__amd64__) || defined(__i386__)
printf("mptable: %d\n", biosmptable_detect());
#endif
return 0;
}