From a5b8224f4e78229a42a990c06f218eadea776ae8 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 11 Nov 2012 09:49:49 -0800 Subject: [PATCH] Dont include iscsi headers from the scsi implementation in scsi-lowlevel.c --- include/scsi-lowlevel.h | 8 +++++++- lib/scsi-lowlevel.c | 2 -- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/scsi-lowlevel.h b/include/scsi-lowlevel.h index 53b4118..d3d7712 100644 --- a/include/scsi-lowlevel.h +++ b/include/scsi-lowlevel.h @@ -17,6 +17,12 @@ #ifndef __scsi_lowlevel_h__ #define __scsi_lowlevel_h__ +#if defined(WIN32) +#define EXTERN __declspec( dllexport ) +#else +#define EXTERN +#endif + #ifdef __cplusplus extern "C" { #endif @@ -356,7 +362,7 @@ struct scsi_task { /* This function will free a scsi task structure. You may NOT cancel a task until the callback has been invoked - and the command has completed on the iscsi layer. + and the command has completed on the transport layer. */ EXTERN void scsi_free_scsi_task(struct scsi_task *task); diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index e7697b5..fa14533 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -35,9 +35,7 @@ #include #include #include "slist.h" -#include "iscsi.h" #include "scsi-lowlevel.h" -#include "iscsi-private.h" struct scsi_allocated_memory { struct scsi_allocated_memory *next;