summaryrefslogtreecommitdiff
path: root/utils/imxtools
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools')
-rw-r--r--utils/imxtools/scsitools/README.win326
-rw-r--r--utils/imxtools/scsitools/scsitool.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/utils/imxtools/scsitools/README.win32 b/utils/imxtools/scsitools/README.win32
new file mode 100644
index 0000000000..1288850b11
--- /dev/null
+++ b/utils/imxtools/scsitools/README.win32
@@ -0,0 +1,6 @@
1This tool can be compiled under Windows with MinGW and the Windows port of sg3_util.
2Everything runs unmodified with MSYS except perhaps for
3- the library in which case you might have to change the LDFLAGS in Makefile to:
4LDFLAGS=/usr/local/lib/libsgutils2.a
5- the include directory in which case you might have to change the DEFINES in Makefile to:
6DEFINES=-I/usr/local/include
diff --git a/utils/imxtools/scsitools/scsitool.c b/utils/imxtools/scsitools/scsitool.c
index 5fe3f6fa8a..c534667f05 100644
--- a/utils/imxtools/scsitools/scsitool.c
+++ b/utils/imxtools/scsitools/scsitool.c
@@ -31,12 +31,19 @@
31#include <sys/stat.h> 31#include <sys/stat.h>
32#include <fcntl.h> 32#include <fcntl.h>
33#include <unistd.h> 33#include <unistd.h>
34#ifndef _WIN32
34#include <scsi/scsi.h> 35#include <scsi/scsi.h>
36#endif
35#include <scsi/sg_lib.h> 37#include <scsi/sg_lib.h>
36#include <scsi/sg_pt.h> 38#include <scsi/sg_pt.h>
37#include "misc.h" 39#include "misc.h"
38#include "stmp_scsi.h" 40#include "stmp_scsi.h"
39 41
42/* the windows port doesn't have scsi.h and GOOD */
43#ifndef GOOD
44#define GOOD 0x00
45#endif
46
40bool g_debug = false; 47bool g_debug = false;
41bool g_force = false; 48bool g_force = false;
42int g_dev_fd = 0; 49int g_dev_fd = 0;