$NetBSD: patch-as,v 1.1.1.1 2005/10/30 21:02:58 agc Exp $

--- src/utest.c	8 Oct 2005 22:21:15 -0000	1.1.1.1
+++ src/utest.c	8 Oct 2005 23:37:34 -0000	1.3
@@ -41,10 +41,14 @@
 #include <unistd.h>
 #include <signal.h>
 
-#ifndef FreeBSD
+#ifdef __linux__
 #include <scsi/scsi.h>
 #endif
 
+#ifdef __NetBSD__
+#include "scsi_cmd_codes.h"
+#endif
+
 #include "iscsi.h"
 #include "initiator.h"
 #include "tests.h"
