Use #if defined(_KERNEL_OPT) to protect #include "opt_xxx.h"

from building LKM etc. Suggested by mrg.
This commit is contained in:
tsutsui 2003-11-09 05:29:59 +00:00
parent 92ce299301
commit 112c91d583
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.12 2003/10/23 15:03:24 scw Exp $ */
/* $NetBSD: bus.h,v 1.13 2003/11/09 05:29:59 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@ -71,7 +71,7 @@
#ifndef _ARM32_BUS_H_
#define _ARM32_BUS_H_
#if defined(_KERNEL) && !defined(_LKM)
#if defined(_KERNEL_OPT)
#include "opt_arm_bus_space.h"
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcb.h,v 1.35 2003/08/24 17:52:33 chs Exp $ */
/* $NetBSD: pcb.h,v 1.36 2003/11/09 05:29:59 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -77,7 +77,7 @@
#ifndef _I386_PCB_H_
#define _I386_PCB_H_
#if defined(_KERNEL) && !defined(_LKM)
#if defined(_KERNEL_OPT)
#include "opt_multiprocessor.h"
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.36 2003/08/07 16:29:49 agc Exp $ */
/* $NetBSD: cpu.h,v 1.37 2003/11/09 05:29:59 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@ -65,7 +65,7 @@
* Exported definitions unique to SPARC cpu support.
*/
#if !defined(_LKM)
#if defined(_KERNEL_OPT)
#include "opt_multiprocessor.h"
#include "opt_lockdebug.h"
#endif