Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/freebsd make compilable without KTRACE, too



details:   https://anonhg.NetBSD.org/src/rev/1c68f55c2cde
branches:  trunk
changeset: 500760:1c68f55c2cde
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Dec 18 08:53:39 2000 +0000

description:
make compilable without KTRACE, too

diffstat:

 sys/compat/freebsd/freebsd_misc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r b555bb3aa645 -r 1c68f55c2cde sys/compat/freebsd/freebsd_misc.c
--- a/sys/compat/freebsd/freebsd_misc.c Mon Dec 18 08:51:39 2000 +0000
+++ b/sys/compat/freebsd/freebsd_misc.c Mon Dec 18 08:53:39 2000 +0000
@@ -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 <compat/freebsd/freebsd_timex.h>
 #include <compat/freebsd/freebsd_signal.h>
 
+#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 @@
        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;



Home | Main Index | Thread Index | Old Index