2001-06-09 Oliver Rauch <Oliver.Rauch@rauch-domain.de>

* sanei/sanei_scsi.c:
          applied patch by Douglas Gilbert <dgilbert@interlog.com>
          that solves compilation problem about:
          storage size of `ssid' isn't known
DEVEL_2_0_BRANCH-1
Oliver Rauch 2001-06-09 19:59:47 +00:00
rodzic 2dfbb1a8f5
commit 69edd5604f
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -266,6 +266,8 @@ int sanei_scsi_max_request_size = MAX_DATA;
#endif
#ifndef SG_GET_SCSI_ID
#define SG_GET_SCSI_ID 0x2276
#else
#define SG_GET_SCSI_ID_FOUND
#endif
#ifndef SG_GET_VERSION_NUM
#define SG_GET_VERSION_NUM 0x2282
@ -2258,7 +2260,7 @@ lx_mk_devicename(int guess_devnum, char *name, size_t name_len)
static int /* Returns 1 for match, else 0 */
lx_chk_id(int dev_fd, int host, int channel, int id, int lun)
{
#ifdef SG_GET_SCSI_ID
#ifdef SG_GET_SCSI_ID_FOUND
struct sg_scsi_id ssid;
if ((ioctl(dev_fd, SG_GET_SCSI_ID, &ssid) >= 0))