mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
amd64: -m32 support for machine/md_var.h
Install the i386 md_var.h under /usr/include/i386 on amd64 and include when targeting i386. This is a mostly kernel-only header required by procstat's ZFS support. It is pulled in by the i386 machine/counter.h. Reviewed by: jhb, imp
This commit is contained in:
parent
8dc3fdfe69
commit
5ea3094e6a
2 changed files with 7 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ INCS= \
|
|||
# This should be fixed.
|
||||
INCS+= \
|
||||
counter.h \
|
||||
md_var.h \
|
||||
pcpu.h \
|
||||
pcpu_aux.h
|
||||
INCSDIR= ${INCLUDEDIR}/i386
|
||||
|
|
|
|||
|
|
@ -31,6 +31,10 @@
|
|||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifdef __i386__
|
||||
#include <i386/md_var.h>
|
||||
#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__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue