Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pstat Include "sys/mallocvar.h" with "_KERNEL" defi...



details:   https://anonhg.NetBSD.org/src/rev/7bd7a72f2263
branches:  trunk
changeset: 542574:7bd7a72f2263
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Feb 01 21:05:54 2003 +0000

description:
Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.

diffstat:

 usr.sbin/pstat/pstat.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 5ade1cb3383c -r 7bd7a72f2263 usr.sbin/pstat/pstat.c
--- a/usr.sbin/pstat/pstat.c    Sat Feb 01 21:05:08 2003 +0000
+++ b/usr.sbin/pstat/pstat.c    Sat Feb 01 21:05:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pstat.c,v 1.77 2003/01/20 07:12:13 simonb Exp $        */
+/*     $NetBSD: pstat.c,v 1.78 2003/02/01 21:05:54 tron Exp $  */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -43,11 +43,14 @@
 #if 0
 static char sccsid[] = "@(#)pstat.c    8.16 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: pstat.c,v 1.77 2003/01/20 07:12:13 simonb Exp $");
+__RCSID("$NetBSD: pstat.c,v 1.78 2003/02/01 21:05:54 tron Exp $");
 #endif
 #endif /* not lint */
 
 #include <sys/param.h>
+#define _KERNEL
+#include <sys/mallocvar.h>
+#undef _KERNEL
 #include <sys/time.h>
 #include <sys/vnode.h>
 #include <sys/ucred.h>



Home | Main Index | Thread Index | Old Index