From f66ae436e945cf4cae4396784dc69166d7d8f2f7 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Mon, 18 Dec 2000 08:53:39 +0000 Subject: [PATCH] make compilable without KTRACE, too --- sys/compat/freebsd/freebsd_misc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/compat/freebsd/freebsd_misc.c b/sys/compat/freebsd/freebsd_misc.c index a874b13f4dc9..f5d2d10c281e 100644 --- a/sys/compat/freebsd/freebsd_misc.c +++ b/sys/compat/freebsd/freebsd_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: freebsd_misc.c,v 1.10 2000/12/17 16:11:38 jdolecek Exp $ */ +/* $NetBSD: freebsd_misc.c,v 1.11 2000/12/18 08:53:39 jdolecek Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -59,8 +59,10 @@ #include #include +#ifdef KTRACE void ktrinitheader(struct ktr_header *, struct proc *, int); int ktrwrite(struct proc *, struct ktr_header *); +#endif int freebsd_sys_msync(p, v, retval) @@ -166,11 +168,11 @@ freebsd_sys_utrace(p, v, retval) void *v; register_t *retval; { +#ifdef KTRACE struct freebsd_sys_utrace_args /* { syscallarg(void *) addr; syscallarg(size_t) len; } */ *uap = v; -#ifdef KTRACE struct ktr_header kth; register caddr_t cp; int error = 0;