Fix previous commit: unbreak build of libkvm by including sys/systm.h

only when _KERNEL is defined.

Approved by:	re@ (implicit)
This commit is contained in:
marcel 2014-09-07 21:40:14 +00:00
parent a7cb473513
commit f2fb38d67f

View File

@ -31,7 +31,6 @@
#define _MACHINE_PCPU_H_
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <machine/pcb.h>
struct pcpu_stats {
@ -72,6 +71,8 @@ struct pcpu_md {
#ifdef _KERNEL
#include <sys/systm.h>
struct pcpu;
register struct pcpu * volatile pcpup __asm__("r13");