pkgsrc/emulators/hercules/patches/patch-ab
agc 206e2832c3 Initial import of hercules, an S/390 emulator, into the packages
collection.

Hercules is an open source software implementation of the mainframe
System/370 and ESA/390 architectures, in addition to the new 64-bit
z/Architecure.  Hercules runs under Linux, Windows 98, Windows NT,
Windows 2000, and NetBSD.  Hercules was created by Roger Bowler and is
maintained by Jay Maynard.  Jan Jaeger designed and implemented many
of the advanced features of Hercules, including dynamic
reconfiguration, integrated console, interpretive execution, and
z/Architecture support.
2001-02-19 12:35:21 +00:00

30 lines
784 B
Text

$NetBSD: patch-ab,v 1.1.1.1 2001/02/19 12:35:21 agc Exp $
Linux tape handling.
--- tapedev.c 2001/02/19 11:50:37 1.1
+++ tapedev.c 2001/02/19 11:57:16
@@ -1149,7 +1149,11 @@
dev->filename, strerror(errno));
return 0;
}
+#if (defined(BSD) && BSD >= 199306)
+ stat = (stblk.mt_dsreg << 16) | stblk.mt_erreg;
+#else
stat = stblk.mt_gstat;
+#endif
/* Display tape status */
if (dev->ccwtrace || dev->ccwstep)
@@ -1240,7 +1244,11 @@
}
/* Intervention required if no tape is mounted */
+#if (defined(BSD) && BSD >= 199306)
+ if (GMT_DR_OPEN(((stblk.mt_dsreg << 16) | stblk.mt_erreg)))
+#else
if (GMT_DR_OPEN(stblk.mt_gstat))
+#endif
{
dev->sense[0] = SENSE_IR;
dev->sense[1] = SENSE1_TAPE_TUB;