make LKM safe

This commit is contained in:
jdolecek 2000-12-06 21:02:00 +00:00
parent 3f127261f3
commit 6ddca63eb7
3 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aout_exec.c,v 1.6 2000/12/01 19:12:11 jdolecek Exp $ */ /* $NetBSD: aout_exec.c,v 1.7 2000/12/06 21:02:00 jdolecek Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -36,7 +36,9 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_syscall_debug.h" #include "opt_syscall_debug.h"
#endif
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: aout_misc.c,v 1.4 2000/12/01 12:28:31 jdolecek Exp $ */ /* $NetBSD: aout_misc.c,v 1.5 2000/12/06 21:02:00 jdolecek Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -36,6 +36,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_ktrace.h" #include "opt_ktrace.h"
#include "opt_nfsserver.h" #include "opt_nfsserver.h"
#include "opt_compat_netbsd.h" #include "opt_compat_netbsd.h"
@ -44,6 +45,7 @@
#include "fs_lfs.h" #include "fs_lfs.h"
#include "fs_nfs.h" #include "fs_nfs.h"
#endif
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.10 2000/08/07 17:59:35 bjh21 Exp $ $NetBSD: syscalls.master,v 1.11 2000/12/06 21:02:00 jdolecek Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@ -34,6 +34,7 @@
; #ifdef's, etc. may be included, and are copied to the output files. ; #ifdef's, etc. may be included, and are copied to the output files.
; #include's are copied to the syscall names and switch definition files only. ; #include's are copied to the syscall names and switch definition files only.
if defined(_KERNEL) && !defined(_LKM)
#include "opt_ktrace.h" #include "opt_ktrace.h"
#include "opt_nfsserver.h" #include "opt_nfsserver.h"
#include "opt_ntp.h" #include "opt_ntp.h"
@ -43,6 +44,7 @@
#include "fs_lfs.h" #include "fs_lfs.h"
#include "fs_nfs.h" #include "fs_nfs.h"
endif
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>