diff options
author | robert <robert@FreeBSD.org> | 2002-08-21 12:45:36 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-08-21 12:45:36 +0000 |
commit | e5cb53908537e485eb3b4eab5465d3018785fd97 (patch) | |
tree | edd0d961e0e740a9046d0b638c6a6b99b380f815 | |
parent | 7199888e8f06576febc8146d51d09b781470e8ce (diff) | |
download | FreeBSD-src-e5cb53908537e485eb3b4eab5465d3018785fd97.zip FreeBSD-src-e5cb53908537e485eb3b4eab5465d3018785fd97.tar.gz |
- 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.
-rw-r--r-- | sys/boot/sparc64/loader/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c index c65426e..208d94e 100644 --- a/sys/boot/sparc64/loader/main.c +++ b/sys/boot/sparc64/loader/main.c @@ -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> |