Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid

build failure because MALLOC_DECLARE() is not defined.
This commit is contained in:
tron 2003-02-01 21:05:54 +00:00
parent 7b7fdceb12
commit 083ed45586
1 changed files with 5 additions and 2 deletions

View File

@ -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 * Copyright (c) 1980, 1991, 1993, 1994
@ -43,11 +43,14 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1991, 1993, 1994\n\
#if 0 #if 0
static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95"; static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
#else #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
#endif /* not lint */ #endif /* not lint */
#include <sys/param.h> #include <sys/param.h>
#define _KERNEL
#include <sys/mallocvar.h>
#undef _KERNEL
#include <sys/time.h> #include <sys/time.h>
#include <sys/vnode.h> #include <sys/vnode.h>
#include <sys/ucred.h> #include <sys/ucred.h>