Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
This commit is contained in:
parent
982065fbae
commit
edb9087c05
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kvm_file.c,v 1.20 2003/02/01 17:22:44 tron Exp $ */
|
||||
/* $NetBSD: kvm_file.c,v 1.21 2003/02/01 21:12:27 tron Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1992, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: kvm_file.c,v 1.20 2003/02/01 17:22:44 tron Exp $");
|
||||
__RCSID("$NetBSD: kvm_file.c,v 1.21 2003/02/01 21:12:27 tron Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -51,12 +51,15 @@ __RCSID("$NetBSD: kvm_file.c,v 1.20 2003/02/01 17:22:44 tron Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#define _KERNEL
|
||||
#include <sys/file.h>
|
||||
#include <sys/mallocvar.h>
|
||||
#undef _KERNEL
|
||||
#include <sys/user.h>
|
||||
#include <sys/lwp.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/exec.h>
|
||||
#define _KERNEL
|
||||
#include <sys/file.h>
|
||||
#undef _KERNEL
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/tty.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd.c,v 1.13 2003/02/01 17:59:47 tron Exp $ */
|
||||
/* $NetBSD: netbsd.c,v 1.14 2003/02/01 21:12:25 tron Exp $ */
|
||||
|
||||
/*
|
||||
** netbsd.c Low level kernel access functions for NetBSD
|
||||
@ -11,6 +11,11 @@
|
||||
** Please send bug fixes/bug reports to: Peter Eriksson <pen@lysator.liu.se>
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#define _KERNEL
|
||||
#include <sys/mallocvar.h>
|
||||
#undef _KERNEL
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -23,14 +28,6 @@
|
||||
|
||||
#include "kvm.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#define _KERNEL
|
||||
|
||||
#include <sys/file.h>
|
||||
|
||||
#undef _KERNEL
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/ioctl.h>
|
||||
@ -38,6 +35,11 @@
|
||||
|
||||
#include <sys/socketvar.h>
|
||||
|
||||
#define _KERNEL
|
||||
|
||||
#include <sys/file.h>
|
||||
|
||||
#undef _KERNEL
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user