From 7ad6d456096d98d999cc4d09c63904be93c835a8 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 24 Jan 2016 01:01:43 +0000 Subject: [PATCH] Instead of hard-coding who has cpu counters why don't you look for them? --- sys/modules/dtrace/lockstat/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/modules/dtrace/lockstat/Makefile b/sys/modules/dtrace/lockstat/Makefile index efa24b1c3ea5..3b6d72f11c95 100644 --- a/sys/modules/dtrace/lockstat/Makefile +++ b/sys/modules/dtrace/lockstat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2015/09/10 19:57:48 riz Exp $ +# $NetBSD: Makefile,v 1.3 2016/01/24 01:01:43 christos Exp $ .include "../../Makefile.inc" @@ -10,7 +10,7 @@ SRCS= lockstat.c CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common CPPFLAGS+= -DKDTRACE_HOOKS -.if (!empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*)) +.if exists(${DESTDIR}/usr/include/machine/cpu_counter.h) CPPFLAGS+= -D__HAVE_CPU_COUNTER .endif