Module Name:    src
Committed By:   dyoung
Date:           Fri Mar 27 16:09:24 UTC 2009

Modified Files:
        src/sys/arch/x86/include: intr.h

Log Message:
If defined(_KERNEL), #include <sys/types.h>, otherwise #include
<stdbool.h>, for the bool definition that we need. intr.h only got the
definition by chance, before.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/x86/include/intr.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/intr.h
diff -u src/sys/arch/x86/include/intr.h:1.37 src/sys/arch/x86/include/intr.h:1.38
--- src/sys/arch/x86/include/intr.h:1.37	Wed Mar 25 22:54:56 2009
+++ src/sys/arch/x86/include/intr.h	Fri Mar 27 16:09:24 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.h,v 1.37 2009/03/25 22:54:56 dyoung Exp $	*/
+/*	$NetBSD: intr.h,v 1.38 2009/03/27 16:09:24 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -35,6 +35,12 @@
 #define	__HAVE_FAST_SOFTINTS
 #define	__HAVE_PREEMPTION
 
+#ifdef _KERNEL
+#include <sys/types.h>
+#else
+#include <stdbool.h>
+#endif
+
 #include <sys/evcnt.h>
 #include <machine/intrdefs.h>
 

Reply via email to