aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/i386/Makefile3
-rw-r--r--sys/amd64/include/pcpu_aux.h6
2 files changed, 8 insertions, 1 deletions
diff --git a/include/i386/Makefile b/include/i386/Makefile
index 70d825bab9cf..de270655fb69 100644
--- a/include/i386/Makefile
+++ b/include/i386/Makefile
@@ -14,7 +14,8 @@ INCS= \
# These kernel-only headers are used by procstat's ZFS support.
# This should be fixed.
INCS+= \
- pcpu.h
+ pcpu.h \
+ pcpu_aux.h
INCSDIR= ${INCLUDEDIR}/i386
.include <bsd.prog.mk>
diff --git a/sys/amd64/include/pcpu_aux.h b/sys/amd64/include/pcpu_aux.h
index 50dfa30fbf5b..229952fb459b 100644
--- a/sys/amd64/include/pcpu_aux.h
+++ b/sys/amd64/include/pcpu_aux.h
@@ -30,6 +30,10 @@
* $FreeBSD$
*/
+#ifdef __i386__
+#include <i386/pcpu_aux.h>
+#else /* !__i386__ */
+
#ifndef _MACHINE_PCPU_AUX_H_
#define _MACHINE_PCPU_AUX_H_
@@ -60,3 +64,5 @@ __curthread(void)
#define curpcb (&curthread->td_md.md_pcb)
#endif /* _MACHINE_PCPU_AUX_H_ */
+
+#endif /* __i386__ */