Unbreak buildworld
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 May 2009 07:42:22 +0000 (15:42 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 May 2009 08:20:54 +0000 (16:20 +0800)
sys/sys/systimer.h

index e4aeaa3..484dafe 100644 (file)
@@ -39,6 +39,8 @@
 #ifndef _SYS_SYSTIMER_H_
 #define _SYS_SYSTIMER_H_
 
+#if defined(_KERNEL) || defined(_KERNEL_STRUCTURES)
+
 #ifndef _SYS_TYPES_H_
 #include <sys/types.h>
 #endif
 #include <sys/queue.h>
 #endif
 
+/* XXX fix sys/kinfo.h */
+#ifndef __BOOLEAN_T_DEFINED__
+#define __BOOLEAN_T_DEFINED__
+typedef        __boolean_t     boolean_t;
+#endif
+
 struct intrframe;
 
 typedef __uint32_t     sysclock_t;
@@ -231,4 +239,6 @@ void cputimer_intr_reload(sysclock_t);
 void cputimer_intr_restart(void);
 int  cputimer_intr_select_caps(uint32_t);
 
+#endif /* _KERNEL || _KERNEL_STRUCTURES */
+
 #endif /* !_SYS_SYSTIMER_H_ */