Subject: kern/5377: sys/system.h inludes lib/libkern/libkern.h for LKM too
To: None <>
From: Stefan Grefen <>
List: netbsd-bugs
Date: 04/29/1998 14:07:52
>Number:         5377
>Category:       kern
>Synopsis:       sys/system.h inludes lib/libkern/libkern.h for LKM too
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 29 05:20:01 1998
>Originator:     Stefan Grefen
Stefan Grefen                                Tandem Computers Europe Inc.                       High Performance Research Center
 --- Hacking's just another word for nothing left to kludge. ---
>Release:        NetBSD-current as of today
System: NetBSD hrriss 1.3B NetBSD 1.3B (HRRISS) #7: Wed Feb 11 18:47:17 GMT 1998 grefen@hrriss:/usr/src/sys/arch/i386/compile/HRRISS i386

	Including sys/system.h outside the kernel tree with 
	_KERNEL defined tries to include lib/libkern/libkern.h and

	Compile any LKM outside of kernel tree. sys/lkm.h needs sys/system.h.
*** /sys/sys/        Wed Apr 29 15:05:38 1998
--- /sys/sys/systm.h    Wed Apr 29 15:07:09 1998
*** 290,296 ****
  void  kmstartup __P((void));
! #ifdef _KERNEL
  #include <lib/libkern/libkern.h>
--- 290,296 ----
  void  kmstartup __P((void));
! #if defined(_KERNEL) && !defined(_LKM)
  #include <lib/libkern/libkern.h>