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:
parent
7abc35f9b4
commit
6db2453429
@ -6,8 +6,4 @@ MAN= powerd.8
|
||||
DPADD= ${LIBUTIL}
|
||||
LDADD= -lutil
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
CFLAGS+=-DUSE_APM
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user