make LKM safe

This commit is contained in:
jdolecek 2000-12-01 19:26:57 +00:00
parent 2ff42428df
commit 8e91e3f0bd
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ultrix_misc.c,v 1.62 2000/12/01 12:28:36 jdolecek Exp $ */ /* $NetBSD: ultrix_misc.c,v 1.63 2000/12/01 19:26:57 jdolecek Exp $ */
/* /*
* Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author) * Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
@ -79,9 +79,11 @@
* from: Header: sun_misc.c,v 1.16 93/04/07 02:46:27 torek Exp * from: Header: sun_misc.c,v 1.16 93/04/07 02:46:27 torek Exp
*/ */
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_nfsserver.h" #include "opt_nfsserver.h"
#include "opt_sysv.h" #include "opt_sysv.h"
#include "opt_execfmt.h" #include "opt_execfmt.h"
#endif
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
@ -92,7 +94,9 @@
* handled here. * handled here.
*/ */
#if defined(_KERNEL) && !defined(_LKM)
#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>