TESTS: ifdef out iov_tot_len if we do not have SG_IO

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-09-12 12:43:07 -07:00
parent fa9df7fdd3
commit e59d2ce1d3

View File

@@ -234,6 +234,7 @@ static int check_result(const char *opcode, struct scsi_device *sdev,
return 0;
}
#ifdef HAVE_SG_IO
static size_t iov_tot_len(struct scsi_iovec *iov, int niov)
{
size_t len = 0;
@@ -243,6 +244,7 @@ static size_t iov_tot_len(struct scsi_iovec *iov, int niov)
len += iov[i].iov_len;
return len;
}
#endif
static struct scsi_task *send_scsi_command(struct scsi_device *sdev, struct scsi_task *task, struct iscsi_data *d)
{