Put the declaration of cpu_softc and #include of sys/device.h inside

#ifdef _KERNEL to reduce the namespace pollution from proplib which
causes build failure in libexec/ld.elf_so.
This commit is contained in:
pavel 2007-09-01 06:41:28 +00:00
parent 2fc102750d
commit ce71996a9e
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.19 2002/09/18 01:44:13 chs Exp $ */
/* $NetBSD: cpu.h,v 1.20 2007/09/01 06:41:28 pavel Exp $ */
/*
* Copyright (C) 1995-1997 Wolfgang Solfrank.
@ -33,6 +33,7 @@
#ifndef _MACHINE_CPU_H_
#define _MACHINE_CPU_H_
#if defined(_KERNEL)
#include <sys/device.h>
struct cpu_softc {
@ -40,10 +41,9 @@ struct cpu_softc {
int sc_ofnode;
};
#if defined(_KERNEL)
#define CPU_MAXNUM 1
extern struct cfdriver cpu_cd;
#endif
#endif /* _KERNEL */
#include <powerpc/cpu.h>