Since APM is a legacy technology, that won't be adapted to other

platforms, move the test for i386 from the Makefile to powerd.c.  The
powerpc specific checks are already done this way...
This commit is contained in:
imp 2010-02-04 07:26:26 +00:00
parent 7abc35f9b4
commit 6db2453429
2 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,4 @@ MAN= powerd.8
DPADD= ${LIBUTIL}
LDADD= -lutil
.if ${MACHINE_ARCH} == "i386"
CFLAGS+=-DUSE_APM
.endif
.include <bsd.prog.mk>

View File

@ -46,6 +46,10 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <unistd.h>
#ifdef __i386__
#define USE_APM
#endif
#ifdef USE_APM
#include <machine/apm_bios.h>
#endif