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:
parent
9a7f5fbd60
commit
7db196715b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue