diff --git a/include/i386/Makefile b/include/i386/Makefile index 58c619f4dbdf..b5f5a23eb906 100644 --- a/include/i386/Makefile +++ b/include/i386/Makefile @@ -15,6 +15,7 @@ INCS= \ # This should be fixed. INCS+= \ counter.h \ + md_var.h \ pcpu.h \ pcpu_aux.h INCSDIR= ${INCLUDEDIR}/i386 diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index 53358600dc79..196836b5baea 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -31,6 +31,10 @@ * $FreeBSD$ */ +#ifdef __i386__ +#include +#else /* !__i386__ */ + #ifndef _MACHINE_MD_VAR_H_ #define _MACHINE_MD_VAR_H_ @@ -95,3 +99,5 @@ int set_fpcontext(struct thread *td, struct __mcontext *mcp, char *xfpustate, size_t xfpustate_len); #endif /* !_MACHINE_MD_VAR_H_ */ + +#endif /* __i386__ */