From b145a3fa59c500e6f6ff327ba404a1e595dcfff4 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 7 Aug 2002 09:34:54 +0000 Subject: [PATCH] Embed "pmc_evid_t" and "pmc_ctr_t" into "if defined(_KERNEL)" and use "__uint64_t" from "int_types.h". This fixes "lint" errors while building "libc". --- sys/arch/i386/include/types.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/include/types.h b/sys/arch/i386/include/types.h index 250675a1f8ff..7265cb427141 100644 --- a/sys/arch/i386/include/types.h +++ b/sys/arch/i386/include/types.h @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.31 2002/08/07 05:38:24 briggs Exp $ */ +/* $NetBSD: types.h,v 1.32 2002/08/07 09:34:54 tron Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -55,8 +55,10 @@ typedef unsigned long vaddr_t; typedef unsigned long vsize_t; #endif +#if defined(_KERNEL) typedef int pmc_evid_t; -typedef unsigned long long pmc_ctr_t; +typedef __uint64_t pmc_ctr_t; +#endif typedef int register_t; /* The x86 does not have strict alignment requirements. */