mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-23 07:31:31 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102219
@ -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 New Issue
Block a user