17 lines
641 B
Plaintext
17 lines
641 B
Plaintext
$OpenBSD: patch-scsilib_libscg_scsi-bsd_c,v 1.1 2001/03/05 08:12:04 fgsch Exp $
|
|
--- scsilib/libscg/scsi-bsd.c.orig Sat Apr 15 03:54:42 2000
|
|
+++ scsilib/libscg/scsi-bsd.c Mon Mar 5 04:46:35 2001
|
|
@@ -59,7 +59,12 @@ struct scg_local {
|
|
#define SADDR_TARGET(a) (SADDR_ISSCSI(a)?(a).addr.scsi.target:(a).addr.atapi.atbus*2+(a).addr.atapi.drive)
|
|
#define SADDR_LUN(a) (SADDR_ISSCSI(a)?(a).addr.scsi.lun:0)
|
|
#else
|
|
+#if defined(__OpenBSD__) && defined(TYPE_ATAPI)
|
|
+#define MAYBE_ATAPI
|
|
+#define SADDR_ISSCSI(a) ((a).type == TYPE_SCSI)
|
|
+#else
|
|
#define SADDR_ISSCSI(a) (1)
|
|
+#endif
|
|
|
|
#define SADDR_BUS(a) (a).scbus
|
|
#define SADDR_TARGET(a) (a).target
|