Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys protect <sys/mallocvar.h> ifdef _KERNEL
details: https://anonhg.NetBSD.org/src/rev/1197d5c9482a
branches: trunk
changeset: 542589:1197d5c9482a
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 02 02:34:53 2003 +0000
description:
protect <sys/mallocvar.h> ifdef _KERNEL
diffstat:
sys/coda/cnode.h | 4 +++-
sys/nfs/nfs_var.h | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (46 lines):
diff -r 530579915a7c -r 1197d5c9482a sys/coda/cnode.h
--- a/sys/coda/cnode.h Sun Feb 02 02:31:14 2003 +0000
+++ b/sys/coda/cnode.h Sun Feb 02 02:34:53 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cnode.h,v 1.10 2003/02/01 06:23:36 thorpej Exp $ */
+/* $NetBSD: cnode.h,v 1.11 2003/02/02 02:34:54 christos Exp $ */
/*
*
@@ -48,9 +48,11 @@
#define _CNODE_H_
#include <sys/vnode.h>
+#ifdef _KERNEL
#include <sys/mallocvar.h>
MALLOC_DECLARE(M_CODA);
+#endif
/*
* tmp below since we need struct queue
diff -r 530579915a7c -r 1197d5c9482a sys/nfs/nfs_var.h
--- a/sys/nfs/nfs_var.h Sun Feb 02 02:31:14 2003 +0000
+++ b/sys/nfs/nfs_var.h Sun Feb 02 02:34:53 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_var.h,v 1.27 2003/02/01 06:23:49 thorpej Exp $ */
+/* $NetBSD: nfs_var.h,v 1.28 2003/02/02 02:34:53 christos Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@
* XXX needs <nfs/rpcv2.h> and <nfs/nfs.h> because of typedefs
*/
+#ifdef _KERNEL
#include <sys/mallocvar.h>
MALLOC_DECLARE(M_NFSREQ);
@@ -50,6 +51,7 @@
MALLOC_DECLARE(M_NFSDIROFF);
MALLOC_DECLARE(M_NFSBIGFH);
MALLOC_DECLARE(M_NQLEASE);
+#endif
struct vnode;
struct uio;
Home |
Main Index |
Thread Index |
Old Index