Protect config(1)-generated include files inclusion with

#ifdef _KERNEL_OPT.  ACPI-CA might be used by standalone code in the
future.  Suggested by cherry@.
This commit is contained in:
cube 2006-04-07 13:49:20 +00:00
parent 9a7f5fbd60
commit 7db196715b
1 changed files with 4 additions and 0 deletions

View File

@ -131,7 +131,9 @@
#define COMPILER_DEPENDENT_UINT64 uint64_t
#ifdef _KERNEL
#ifdef _KERNEL_OPT
#include "opt_acpi.h" /* collect build-time options here */
#endif
#include <sys/param.h>
#include <sys/systm.h>
@ -157,7 +159,9 @@
#undef DEBUGGER_THREADING
#endif /* DEBUGGER_THREADING */
#define DEBUGGER_THREADING 0 /* integrated with DDB */
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
#endif
#ifdef DDB
#define ACPI_DISASSEMBLER
#define ACPI_DEBUGGER