summaryrefslogtreecommitdiffstats
path: root/sys/boot/sparc64
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-08-21 12:45:36 +0000
committerrobert <robert@FreeBSD.org>2002-08-21 12:45:36 +0000
commite5cb53908537e485eb3b4eab5465d3018785fd97 (patch)
treeedd0d961e0e740a9046d0b638c6a6b99b380f815 /sys/boot/sparc64
parent7199888e8f06576febc8146d51d09b781470e8ce (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/boot/sparc64')
-rw-r--r--sys/boot/sparc64/loader/main.c3
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>
OpenPOWER on IntegriCloud