Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/arch/i386 make LKM safe



details:   https://anonhg.NetBSD.org/src/rev/636ef88356fe
branches:  trunk
changeset: 500724:636ef88356fe
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Dec 17 16:15:54 2000 +0000

description:
make LKM safe

diffstat:

 sys/compat/linux/arch/i386/linux_commons.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 49eda9c384f3 -r 636ef88356fe sys/compat/linux/arch/i386/linux_commons.c
--- a/sys/compat/linux/arch/i386/linux_commons.c        Sun Dec 17 16:14:40 2000 +0000
+++ b/sys/compat/linux/arch/i386/linux_commons.c        Sun Dec 17 16:15:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_commons.c,v 1.2 2000/12/12 19:01:59 jdolecek Exp $       */
+/*     $NetBSD: linux_commons.c,v 1.3 2000/12/17 16:15:54 jdolecek Exp $       */
 
 /*
  * This file includes C files from the common
@@ -12,11 +12,13 @@
  * C files doesn't use it.
  */
 
+#if defined(_KERNEL) && !defined(_LKM)
 #include "opt_sysv.h"
 #include "opt_ktrace.h"
 #include "opt_nfsserver.h"
 #include "fs_nfs.h"
 #include "fs_lfs.h"
+#endif
 
 #include <sys/types.h>
 #include <sys/param.h>



Home | Main Index | Thread Index | Old Index