Conditionalize an #include so libcam can build the file.
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 2 Jun 2005 21:12:45 +0000 (21:12 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 2 Jun 2005 21:12:45 +0000 (21:12 +0000)
sys/bus/cam/scsi/scsi_da.c

index c3f7b7c..3fb3e76 100644 (file)
@@ -26,7 +26,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/cam/scsi/scsi_da.c,v 1.42.2.46 2003/10/21 22:18:19 thomas Exp $
- * $DragonFly: src/sys/bus/cam/scsi/scsi_da.c,v 1.23 2005/06/02 20:40:31 dillon Exp $
+ * $DragonFly: src/sys/bus/cam/scsi/scsi_da.c,v 1.24 2005/06/02 21:12:45 dillon Exp $
  */
 
 #ifdef _KERNEL
@@ -54,7 +54,9 @@
 #include <sys/proc.h>
 #endif
 #include <sys/buf2.h>
+#ifdef _KERNEL
 #include <sys/thread2.h>
+#endif
 
 #include <machine/md_var.h>