mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
- Define the macro _KERNEL to pretend we are compiling a kernel.
This is required by recent changes to <sys/pcpu.h>, which uses the #error preprocessor directive to keep non-kernel applications from using it. _KERNEL is defined below the #include <stand.h>, because <stand.h> removes the definition of _KERNEL. - Move the inclusion of <sys/queue.h> above the inclusion of <sys/linker.h> to avoid syntax errors.
This commit is contained in:
parent
26ef6ac4df
commit
09bb4b96a4
1 changed files with 2 additions and 1 deletions
|
|
@ -19,11 +19,12 @@
|
|||
*/
|
||||
|
||||
#include <stand.h>
|
||||
#define _KERNEL
|
||||
#include <sys/exec.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/queue.h>
|
||||
#include <sys/linker.h>
|
||||
#include <sys/pcpu.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
#include <machine/asi.h>
|
||||
#include <machine/atomic.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue