Only include thread2.h for kernel builds (its macros are used by vm_page.h's
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 27 Aug 2005 00:56:57 +0000 (00:56 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 27 Aug 2005 00:56:57 +0000 (00:56 +0000)
inlines, which are also kernel-only).

sys/vm/vm_page.h

index a68fa41..ef44bf4 100644 (file)
@@ -62,7 +62,7 @@
  * rights to redistribute these changes.
  *
  * $FreeBSD: src/sys/vm/vm_page.h,v 1.75.2.8 2002/03/06 01:07:09 dillon Exp $
- * $DragonFly: src/sys/vm/vm_page.h,v 1.21 2005/08/10 17:53:58 hmp Exp $
+ * $DragonFly: src/sys/vm/vm_page.h,v 1.22 2005/08/27 00:56:57 dillon Exp $
  */
 
 /*
@@ -78,7 +78,9 @@
 
 #include <vm/pmap.h>
 #include <machine/atomic.h>
+#ifdef _KERNEL
 #include <sys/thread2.h>
+#endif
 
 /*
  *     Management of resident (logical) pages.