From b855636ac0018d217be1733c705217a40569a648 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 7 Mar 2006 13:18:20 +0000 Subject: [PATCH] Fix build problems caused by the last commit by only providing the prototypes for trace_XXX() if _KERNEL is defined and including "sys/types.h" in that case to get the definition of "boolean_t". --- sys/sys/systm.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 469b4fa35cd3..63196c745c59 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -1,4 +1,4 @@ -/* $NetBSD: systm.h,v 1.185 2006/03/07 03:32:06 thorpej Exp $ */ +/* $NetBSD: systm.h,v 1.186 2006/03/07 13:18:20 tron Exp $ */ /*- * Copyright (c) 1982, 1988, 1991, 1993 @@ -75,6 +75,10 @@ #include +#ifdef _KERNEL +#include +#endif + struct clockframe; struct device; struct lwp; @@ -353,10 +357,12 @@ void doforkhooks(struct proc *, struct proc *); /* * kernel syscall tracing/debugging hooks. */ +#ifdef _KERNEL boolean_t trace_is_enabled(struct proc *); int trace_enter(struct lwp *, register_t, register_t, const struct sysent *, void *); void trace_exit(struct lwp *, register_t, void *, register_t [], int); +#endif int uiomove(void *, size_t, struct uio *); int uiomove_frombuf(void *, size_t, struct uio *);