summaryrefslogtreecommitdiff
path: root/utils/nwztools/scsitools/scsitool.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/scsitools/scsitool.c')
-rw-r--r--utils/nwztools/scsitools/scsitool.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/nwztools/scsitools/scsitool.c b/utils/nwztools/scsitools/scsitool.c
index ba4a1475bc..7e2dcd9967 100644
--- a/utils/nwztools/scsitools/scsitool.c
+++ b/utils/nwztools/scsitools/scsitool.c
@@ -31,12 +31,19 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#ifndef _WIN32
#include <scsi/scsi.h>
+#endif
#include <scsi/sg_lib.h>
#include <scsi/sg_pt.h>
#include "misc.h"
#include "para_noise.h"
+/* the windows port doesn't have scsi.h and GOOD */
+#ifndef GOOD
+#define GOOD 0x00
+#endif
+
bool g_debug = false;
bool g_force = false;
char *g_out_prefix = NULL;