Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpmc pmc_evid_, pmc_ctr_t etc are defined in <machine/...



details:   https://anonhg.NetBSD.org/src/rev/b346b237a723
branches:  trunk
changeset: 813299:b346b237a723
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 23 21:44:55 2016 +0000

description:
pmc_evid_, pmc_ctr_t etc are defined in <machine/types.h> but are not exposed
anymore by default since they violate the userland namespace. Either we
should create __pmc types, or a separate machine/pmc.h header.

diffstat:

 lib/libpmc/Makefile |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 962d035c0797 -r b346b237a723 lib/libpmc/Makefile
--- a/lib/libpmc/Makefile       Sat Jan 23 21:39:17 2016 +0000
+++ b/lib/libpmc/Makefile       Sat Jan 23 21:44:55 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2002/08/09 00:03:15 thorpej Exp $
+#      $NetBSD: Makefile,v 1.2 2016/01/23 21:44:55 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -8,6 +8,7 @@
 LIB=   pmc
 SRCS=  pmc.c
 SRCS+= pmc_${MACHINE_CPU}.c
+CPPFLAGS+=     -D_KERNTYPES
 
 INCS=  pmc.h
 INCSDIR=/usr/include



Home | Main Index | Thread Index | Old Index