Protect the include of <sys/cpu_data.h> with a test for either _KERNEL

or _KMEMUSER.  This should fix the build problem in libkvm for our m68k
ports.
This commit is contained in:
he 2011-01-01 00:37:16 +00:00
parent 304c5ab65d
commit 914db8430e
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.12 2010/12/22 02:42:28 matt Exp $ */
/* $NetBSD: cpu.h,v 1.13 2011/01/01 00:37:16 he Exp $ */
/*
* Copyright (c) 1982, 1990, 1993
@ -197,9 +197,9 @@
#define CACHE60_ON (CACHE40_ON|IC60_CABC|IC60_EBC|DC60_ESB)
#define CACHE60_OFF (CACHE40_OFF|IC60_CABC)
#if defined(_KERNEL) || defined(_KMEMUSER)
#include <sys/cpu_data.h>
#if defined(_KERNEL) || defined(_KMEMUSER)
struct cpu_info {
struct cpu_data ci_data; /* MI per-cpu data */
cpuid_t ci_cpuid;