From 7a377edc318a1174297fece77894eb66fe05d8dd Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 4 Feb 2010 07:26:26 +0000 Subject: [PATCH] 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... --- usr.sbin/powerd/Makefile | 4 ---- usr.sbin/powerd/powerd.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/powerd/Makefile b/usr.sbin/powerd/Makefile index b1d8d112f610..62f8da1ba1a4 100644 --- a/usr.sbin/powerd/Makefile +++ b/usr.sbin/powerd/Makefile @@ -6,8 +6,4 @@ MAN= powerd.8 DPADD= ${LIBUTIL} LDADD= -lutil -.if ${MACHINE_ARCH} == "i386" -CFLAGS+=-DUSE_APM -.endif - .include diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c index 59ac1caaf692..b4ba05d7a963 100644 --- a/usr.sbin/powerd/powerd.c +++ b/usr.sbin/powerd/powerd.c @@ -46,6 +46,10 @@ __FBSDID("$FreeBSD$"); #include #include +#ifdef __i386__ +#define USE_APM +#endif + #ifdef USE_APM #include #endif