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
6ca3abc9bb
commit
7a377edc31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203482
@ -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