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:
Warner Losh 2010-02-04 07:26:26 +00:00
parent 6ca3abc9bb
commit 7a377edc31
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203482
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