Use #ifdef _KERNEL_OPT around #include "opt_XXX.h"

This commit is contained in:
matt 2003-09-20 22:28:19 +00:00
parent 70060b7c61
commit 200ff49b87
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lock.h,v 1.2 2003/06/23 11:01:16 martin Exp $ */ /* $NetBSD: lock.h,v 1.3 2003/09/20 22:28:19 matt Exp $ */
/*- /*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -44,7 +44,9 @@
#ifndef _HPPA_LOCK_H_ #ifndef _HPPA_LOCK_H_
#define _HPPA_LOCK_H_ #define _HPPA_LOCK_H_
#ifdef _KERNEL_OPT
#include "opt_multiprocessor.h" #include "opt_multiprocessor.h"
#endif
#ifdef MULTIPROCESSOR #ifdef MULTIPROCESSOR

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.4 2003/06/23 11:01:17 martin Exp $ */ /* $NetBSD: param.h,v 1.5 2003/09/20 22:28:19 matt Exp $ */
/* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */ /* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */
@ -25,7 +25,9 @@
* Utah $Hdr: param.h 1.18 94/12/16$ * Utah $Hdr: param.h 1.18 94/12/16$
*/ */
#ifdef _KERNEL_OPT
#include "opt_compat_hpux.h" #include "opt_compat_hpux.h"
#endif
#include <sys/featuretest.h> #include <sys/featuretest.h>
#if defined(_NETBSD_SOURCE) #if defined(_NETBSD_SOURCE)