Module Name: src
Committed By: dyoung
Date: Fri Mar 27 16:07:37 UTC 2009
Modified Files:
src/sys/arch/x86/include: cpu.h
Log Message:
If defined(_KERNEL), #include <sys/types.h>, otherwise #include
<stdbool.h>, for the bool definition that we need. cpu.h only got the
definition by chance, before.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/include/cpu.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/include/cpu.h
diff -u src/sys/arch/x86/include/cpu.h:1.11 src/sys/arch/x86/include/cpu.h:1.12
--- src/sys/arch/x86/include/cpu.h:1.11 Sat Mar 7 21:59:25 2009
+++ src/sys/arch/x86/include/cpu.h Fri Mar 27 16:07:37 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.11 2009/03/07 21:59:25 ad Exp $ */
+/* $NetBSD: cpu.h,v 1.12 2009/03/27 16:07:37 dyoung Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -400,6 +400,12 @@
#endif /* _KERNEL || __KMEMUSER */
+#if defined(_KERNEL)
+#include <sys/types.h>
+#else
+#include <stdbool.h>
+#endif /* _KERNEL */
+
/*
* CTL_MACHDEP definitions.
*/