From a8fdd2914b4e91fbecd4f7970e49d20a8bfa79db Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 13 Apr 2011 06:29:30 +0000 Subject: [PATCH] move the include sys/types.h xor stdbool.h to the top of the file, so that "bool" will be present when used later in the file. --- sys/arch/x86/include/cpu.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/arch/x86/include/cpu.h b/sys/arch/x86/include/cpu.h index 8574ba2842cd..f22666cc8ac6 100644 --- a/sys/arch/x86/include/cpu.h +++ b/sys/arch/x86/include/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.31 2011/02/24 15:42:17 jruoho Exp $ */ +/* $NetBSD: cpu.h,v 1.32 2011/04/13 06:29:30 mrg Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -37,6 +37,12 @@ #ifndef _X86_CPU_H_ #define _X86_CPU_H_ +#if defined(_KERNEL) || defined(_STANDALONE) +#include +#else +#include +#endif /* _KERNEL || _STANDALONE */ + #if defined(_KERNEL) || defined(_KMEMUSER) #if defined(_KERNEL_OPT) #include "opt_xen.h" @@ -435,12 +441,6 @@ void x86_bus_space_mallocok(void); #endif /* _KERNEL || __KMEMUSER */ -#if defined(_KERNEL) || defined(_STANDALONE) -#include -#else -#include -#endif /* _KERNEL || _STANDALONE */ - /* * CTL_MACHDEP definitions. */