diff options
Diffstat (limited to 'utils/imxtools')
| -rw-r--r-- | utils/imxtools/scsitools/README.win32 | 6 | ||||
| -rw-r--r-- | utils/imxtools/scsitools/scsitool.c | 7 |
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 0000000..1288850 --- /dev/null +++ b/utils/imxtools/scsitools/README.win32 @@ -0,0 +1,6 @@ +This tool can be compiled under Windows with MinGW and the Windows port of sg3_util. +Everything runs unmodified with MSYS except perhaps for +- the library in which case you might have to change the LDFLAGS in Makefile to: +LDFLAGS=/usr/local/lib/libsgutils2.a +- the include directory in which case you might have to change the DEFINES in Makefile to: +DEFINES=-I/usr/local/include diff --git a/utils/imxtools/scsitools/scsitool.c b/utils/imxtools/scsitools/scsitool.c index 5fe3f6f..c534667 100644 --- a/utils/imxtools/scsitools/scsitool.c +++ b/utils/imxtools/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 "stmp_scsi.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; int g_dev_fd = 0; |