diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-10-10 19:36:41 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-10-10 19:36:41 +0000 |
commit | 6528a3f9ff914310b50f9d4bec576a7773b6ee73 (patch) | |
tree | b97eb1603ce1fc28b91f9b1b31966a9b979f37a8 /emulators | |
parent | e6055987094a385655f9f7056aaeb722bb78f158 (diff) | |
download | ports-6528a3f9ff914310b50f9d4bec576a7773b6ee73.tar.gz ports-6528a3f9ff914310b50f9d4bec576a7773b6ee73.zip |
Notes
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/hercules/Makefile | 33 | ||||
-rw-r--r-- | emulators/hercules/distinfo | 2 | ||||
-rw-r--r-- | emulators/hercules/files/patch-aa | 57 | ||||
-rw-r--r-- | emulators/hercules/files/patch-ab | 12 | ||||
-rw-r--r-- | emulators/hercules/files/patch-ad | 50 | ||||
-rw-r--r-- | emulators/hercules/files/patch-ae | 11 | ||||
-rw-r--r-- | emulators/hercules/files/patch-ah | 18 | ||||
-rw-r--r-- | emulators/hercules/files/patch-feature.h | 12 | ||||
-rw-r--r-- | emulators/hercules/files/patch-hercules.h | 12 | ||||
-rw-r--r-- | emulators/hercules/files/patch-tapecopy.c (renamed from emulators/hercules/files/patch-af) | 9 | ||||
-rw-r--r-- | emulators/hercules/files/patch-tapedev.c (renamed from emulators/hercules/files/patch-ag) | 95 | ||||
-rw-r--r-- | emulators/hercules/files/patch-version.c | 17 |
12 files changed, 108 insertions, 220 deletions
diff --git a/emulators/hercules/Makefile b/emulators/hercules/Makefile index 72e8b082d761..637730cfadf4 100644 --- a/emulators/hercules/Makefile +++ b/emulators/hercules/Makefile @@ -6,36 +6,33 @@ # PORTNAME= hercules -PORTVERSION= 2.15 -PORTREVISION= 1 +PORTVERSION= 2.16.5 CATEGORIES= emulators MASTER_SITES= http://www.conmicro.cx/hercules/ MAINTAINER= adam@vectors.cx GNU_CONFIGURE= yes +USE_REINPLACE= yes post-patch: - - @${PERL} -pi -e 's@lpthread@pthread@g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's@-lpthread@${PTHREAD_LIBS}@g' ${WRKSRC}/configure do-install: - - @for i in hercules dasdinit dasdisup dasdload dasdls dasdpdsu \ - tapecopy tapemap tapesplt cckd2ckd cckdcdsk ckd2cckd \ - cckdcomp cckdswap hetget hetinit hetmap hetupd dmap2hrc; \ - do \ - ${INSTALL_PROGRAM} ${WRKSRC}/$$i ${PREFIX}/bin; \ - done +.for i in hercules dasdinit dasdisup dasdload dasdls dasdpdsu \ + tapecopy tapemap tapesplt cckd2ckd cckdcdsk ckd2cckd \ + cckdcomp cckdswap hetget hetinit hetmap hetupd dmap2hrc + ${INSTALL_PROGRAM} ${WRKSRC}/$i ${PREFIX}/bin +.endfor .if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/doc/hercules - @${RM} -f ${WRKSRC}/html/Makefile* - @for i in ${WRKSRC}/hercules.cnf ${WRKSRC}/html/* ; \ - do \ - ${INSTALL_DATA} $$i ${PREFIX}/share/doc/hercules; \ - done + @${MKDIR} ${DOCSDIR} +.for i in ../hercules.cnf cckddasd.html hercconf.html hercfaq.html \ + hercinst.html herclic.html hercload.html hercnew.html herctcp.html \ + hercules.css index.html + ${INSTALL_DATA} ${WRKSRC}/html/$i ${DOCSDIR} +.endfor .endif - @${CAT} pkg-message + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/emulators/hercules/distinfo b/emulators/hercules/distinfo index 96b7f70fb944..96762b2146d5 100644 --- a/emulators/hercules/distinfo +++ b/emulators/hercules/distinfo @@ -1 +1 @@ -MD5 (hercules-2.15.tar.gz) = 8eb98b2b5663607fda075fc57f019172 +MD5 (hercules-2.16.5.tar.gz) = 5c23268223e2e74a08fd7d148a159834 diff --git a/emulators/hercules/files/patch-aa b/emulators/hercules/files/patch-aa deleted file mode 100644 index fc6217273d18..000000000000 --- a/emulators/hercules/files/patch-aa +++ /dev/null @@ -1,57 +0,0 @@ -diff -uNr ckddasd.c ---- ckddasd.c Tue Nov 20 17:39:46 2001 -+++ ckddasd.c Tue Jan 15 22:03:48 2002 -@@ -786,7 +786,7 @@ - { - /* if lazy write, write the last track image */ - if (dev->ckdlazywrt) -- ckd_lseek (dev, -1, -1, -1); -+ ckd_lseek (dev, -1, (off_t)-1, -1); - - /* free the cache */ - for (i = 0; i < dev->ckdcachenbr; i++) -@@ -1240,7 +1240,7 @@ - - DEVTRACE("ckddasd: skipping %d bytes\n", skiplen); - -- rc = ckd_lseek (dev, dev->fd, skiplen, SEEK_CUR); -+ rc = ckd_lseek (dev, dev->fd, (off_t)skiplen, SEEK_CUR); - if (rc == -1) - { - #ifdef OPTION_SYNCIO -@@ -1734,7 +1734,7 @@ - ckdlen = CKDDASD_RECHDR_SIZE + keylen + datalen; - - /* Determine the current position in the file */ -- curpos = ckd_lseek (dev, dev->fd, 0, SEEK_CUR); -+ curpos = ckd_lseek (dev, dev->fd, (off_t)0, SEEK_CUR); - if (curpos == -1) - { - #ifdef OPTION_SYNCIO -@@ -1782,7 +1782,7 @@ - } - - /* Backspace over end of track marker */ -- rc = ckd_lseek (dev, dev->fd, -(CKDDASD_RECHDR_SIZE), SEEK_CUR); -+ rc = ckd_lseek (dev, dev->fd, -(off_t)(CKDDASD_RECHDR_SIZE), SEEK_CUR); - if (rc == -1) - { - #ifdef OPTION_SYNCIO -@@ -1854,7 +1854,7 @@ - ckdlen = CKDDASD_RECHDR_SIZE + keylen + datalen; - - /* Determine the current position in the file */ -- curpos = ckd_lseek (dev, dev->fd, 0, SEEK_CUR); -+ curpos = ckd_lseek (dev, dev->fd, (off_t)0, SEEK_CUR); - if (curpos == -1) - { - #ifdef OPTION_SYNCIO -@@ -1938,7 +1938,7 @@ - } - - /* Backspace over end of track marker */ -- rc = ckd_lseek (dev, dev->fd, -(CKDDASD_RECHDR_SIZE), SEEK_CUR); -+ rc = ckd_lseek (dev, dev->fd, -(off_t)(CKDDASD_RECHDR_SIZE), SEEK_CUR); - if (rc == -1) - { - #ifdef OPTION_SYNCIO diff --git a/emulators/hercules/files/patch-ab b/emulators/hercules/files/patch-ab deleted file mode 100644 index 60bc3a0fdf1f..000000000000 --- a/emulators/hercules/files/patch-ab +++ /dev/null @@ -1,12 +0,0 @@ ---- Makefile.am Tue Oct 30 16:44:39 2001 -+++ Makefile.am Mon Mar 11 02:44:03 2002 -@@ -93,8 +93,8 @@ - - tar: dist - -+install-exec-local: - if SETUID_HERCIFC --install-exec-local: - chown root $(DESTDIR)$(bindir)/hercifc - chmod 0751 $(DESTDIR)$(bindir)/hercifc - chmod +s $(DESTDIR)$(bindir)/hercifc diff --git a/emulators/hercules/files/patch-ad b/emulators/hercules/files/patch-ad deleted file mode 100644 index b1c7754a70b5..000000000000 --- a/emulators/hercules/files/patch-ad +++ /dev/null @@ -1,50 +0,0 @@ -diff -uNr configure.ac ---- configure.ac Wed Dec 19 07:20:00 2001 -+++ configure.ac Thu Jan 17 22:50:57 2002 -@@ -72,6 +72,19 @@ - - AM_CONDITIONAL(BUILD_FTHREADS, [test x$build_fthreads = xtrue]) - -+dnl AC_MSG_NOTICE([Checking to see if -pthread is needed to compile]) -+ -+AC_MSG_CHECKING([wether ${CC-cc} accepts -pthread]) -+ -+echo 'void f(){}' >conftest.c -+if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then -+ LIBS="-pthread $LIBS" -+ AC_MSG_RESULT([yes]) -+else -+ AC_MSG_RESULT([no]) -+fi -+rm -f conftest* -+ - # Headers - AC_CHECK_HEADERS(byteswap.h) - AC_CHECK_HEADER(fenv.h,,[AC_DEFINE([NO_IEEE_SUPPORT])]) -@@ -105,6 +118,16 @@ - [AC_DEFINE([HAVE_U_INT])], - [AC_MSG_ERROR([Unable to find fixed-size data types])] )] ) - -+dnl AC_MSG_NOTICE([Checking for SCSI tape support and what type]) -+AC_CHECK_HEADER(sys/mtio.h, -+ [AC_DEFINE([HAVE_MTIO_H])]) -+ -+AC_TRY_COMPILE([#include mtio.h], -+ [mtget test; -+ int result; -+ result = test.mt_gstat; ], -+ [AC_DEFINE([GNU_MTIO_SUPPORT])]) -+ - # Compiler characteristics - - AC_C_BIGENDIAN -@@ -306,5 +329,9 @@ - [Define to provide additional information about this build]) - AH_TEMPLATE([DEBUG], - [Define to enable extra debugging code]) -+AH_TEMPLATE([HAVE_MTIO_H], -+ [Define if your system has sys/mtio.h]) -+AH_TEMPLATE([GNU_MTIO_SUPPORT], -+ [Define if you have the GNU version of mtio.h (Linux)]) - - AC_OUTPUT(Makefile util/Makefile html/Makefile) diff --git a/emulators/hercules/files/patch-ae b/emulators/hercules/files/patch-ae deleted file mode 100644 index af4fb0c7869f..000000000000 --- a/emulators/hercules/files/patch-ae +++ /dev/null @@ -1,11 +0,0 @@ -diff -uNr hercules.h ---- hercules.h Wed Dec 19 07:18:17 2001 -+++ hercules.h Tue Jan 15 20:26:56 2002 -@@ -215,6 +215,7 @@ - pthread_cond_timedwait((pcond),(plk),(timeout)) - #define initialize_detach_attr(pat) \ - pthread_attr_init((pat)); \ -+ pthread_attr_setstacksize((pat),1048576); \ - pthread_attr_setdetachstate((pat),PTHREAD_CREATE_DETACHED) - typedef void*THREAD_FUNC(void*); - #define create_thread(ptid,pat,fn,arg) \ diff --git a/emulators/hercules/files/patch-ah b/emulators/hercules/files/patch-ah deleted file mode 100644 index 7af5d7cab74c..000000000000 --- a/emulators/hercules/files/patch-ah +++ /dev/null @@ -1,18 +0,0 @@ -diff -uNr version.c ---- version.c Thu Nov 29 08:05:47 2001 -+++ version.c Thu Jan 17 14:10:55 2002 -@@ -77,6 +77,14 @@ - "No HET BZIP2 support", - #endif - -+#if defined(GNU_MTIO_SUPPORT) -+ "Using GNU tape handling", -+#elif defined(HAVE_MTIO_H) -+ "Using generic Unix tape handling", -+#else -+ "No SCSI tape support", -+#endif -+ - #if defined(CUSTOM_BUILD_STRING) - CUSTOM_BUILD_STRING, - #endif diff --git a/emulators/hercules/files/patch-feature.h b/emulators/hercules/files/patch-feature.h new file mode 100644 index 000000000000..17885d5ad6c0 --- /dev/null +++ b/emulators/hercules/files/patch-feature.h @@ -0,0 +1,12 @@ +--- feature.h.orig Mon Sep 2 11:36:09 2002 ++++ feature.h Mon Sep 2 11:36:55 2002 +@@ -479,4 +479,9 @@ + #define XSTORE_PAGEMASK 0x7FFFF000 + #endif + ++#if defined(__FreeBSD__) ++ #define HAVE_MTIO_H ++#else ++ #define GNU_MTIO_SUPPORT ++#endif + /* end of FEATURES.H */ diff --git a/emulators/hercules/files/patch-hercules.h b/emulators/hercules/files/patch-hercules.h new file mode 100644 index 000000000000..25525c4a17a9 --- /dev/null +++ b/emulators/hercules/files/patch-hercules.h @@ -0,0 +1,12 @@ +--- hercules.h.orig Mon Sep 2 11:43:46 2002 ++++ hercules.h Mon Sep 2 11:44:56 2002 +@@ -333,6 +333,9 @@ + BYTE *iobuf, BYTE *more, BYTE *unitstat, U16 *residual); + typedef int DEVCF (struct _DEVBLK *dev); + ++#if defined(HAVE_MTIO_H) ++ #include <sys/mtio.h> ++#endif + + /*-------------------------------------------------------------------*/ + /* Structure definition for the Vector Facility */ diff --git a/emulators/hercules/files/patch-af b/emulators/hercules/files/patch-tapecopy.c index ab64f9b2275a..237c636de0c0 100644 --- a/emulators/hercules/files/patch-af +++ b/emulators/hercules/files/patch-tapecopy.c @@ -1,6 +1,5 @@ -diff -uNr tapecopy.c ---- tapecopy.c Thu Nov 29 07:53:46 2001 -+++ tapecopy.c Thu Jan 17 14:04:09 2002 +--- tapecopy.c.orig Mon Sep 2 11:00:59 2002 ++++ tapecopy.c Mon Sep 2 11:03:21 2002 @@ -32,6 +32,7 @@ static BYTE hdrlbl[] = "\xC8\xC4\xD9"; /* EBCDIC characters "HDR" */ static BYTE eoflbl[] = "\xC5\xD6\xC6"; /* EBCDIC characters "EOF" */ @@ -46,7 +45,7 @@ diff -uNr tapecopy.c return 0; } /* end function print_status */ -@@ -174,6 +180,7 @@ +@@ -188,6 +194,7 @@ exit (7); } @@ -54,7 +53,7 @@ diff -uNr tapecopy.c /* Display tape status information */ for (i = 0; tapeinfo[i].t_type != 0 && tapeinfo[i].t_type != stblk.mt_type; i++); -@@ -201,6 +208,7 @@ +@@ -215,6 +222,7 @@ /* Set the tape device to process variable length blocks */ opblk.mt_op = MTSETBLK; diff --git a/emulators/hercules/files/patch-ag b/emulators/hercules/files/patch-tapedev.c index 5ed9d446f6dc..1eb7d444e5b7 100644 --- a/emulators/hercules/files/patch-ag +++ b/emulators/hercules/files/patch-tapedev.c @@ -1,7 +1,6 @@ -diff -uNr tapedev.c ---- tapedev.c Tue Nov 20 17:39:47 2001 -+++ tapedev.c Thu Jan 17 15:07:35 2002 -@@ -194,6 +194,7 @@ +--- tapedev.c.orig Wed Jul 3 13:21:52 2002 ++++ tapedev.c Mon Sep 2 11:43:24 2002 +@@ -195,6 +195,7 @@ /*-------------------------------------------------------------------*/ /* Static data areas */ /*-------------------------------------------------------------------*/ @@ -9,7 +8,7 @@ diff -uNr tapedev.c static struct mt_tape_info tapeinfo[] = MT_TAPE_INFO; static struct mt_tape_info densinfo[] = { {0x01, "NRZI (800 bpi)"}, -@@ -221,6 +222,7 @@ +@@ -222,6 +223,7 @@ {0x8C, "EXB-8505 compressed"}, {0x90, "EXB-8205 compressed"}, {0, NULL}}; @@ -17,7 +16,7 @@ diff -uNr tapedev.c static PARSER ptab[] = { -@@ -1142,6 +1144,7 @@ +@@ -1143,6 +1145,7 @@ /*-------------------------------------------------------------------*/ static U32 status_scsitape (DEVBLK *dev) { @@ -25,7 +24,7 @@ diff -uNr tapedev.c U32 stat; /* Tape status bits */ int rc; /* Return code */ struct mtget stblk; /* Area for MTIOCGET ioctl */ -@@ -1158,6 +1161,7 @@ +@@ -1159,6 +1162,7 @@ dev->filename, strerror(errno)); return 0; } @@ -33,12 +32,12 @@ diff -uNr tapedev.c stat = stblk.mt_gstat; /* Display tape status */ -@@ -1190,10 +1194,14 @@ +@@ -1191,10 +1195,14 @@ dev->prvblkpos = -1; dev->blockid = 0; } +#else -+ stat = 0; ++ stat = 0; +#endif /* Return tape status */ @@ -48,7 +47,7 @@ diff -uNr tapedev.c } /* end function status_scsitape */ /*-------------------------------------------------------------------*/ -@@ -1204,6 +1212,7 @@ +@@ -1205,6 +1213,7 @@ /*-------------------------------------------------------------------*/ static int open_scsitape (DEVBLK *dev, BYTE *unitstat) { @@ -56,7 +55,7 @@ diff -uNr tapedev.c int rc; /* Return code */ int i; /* Array subscript */ struct mtop opblk; /* Area for MTIOCTOP ioctl */ -@@ -1248,6 +1257,7 @@ +@@ -1249,6 +1258,7 @@ return -1; } @@ -64,7 +63,7 @@ diff -uNr tapedev.c /* Intervention required if no tape is mounted */ if (GMT_DR_OPEN(stblk.mt_gstat)) { -@@ -1283,6 +1293,7 @@ +@@ -1284,6 +1294,7 @@ /* Set the tape device to process variable length blocks */ opblk.mt_op = MTSETBLK; @@ -72,20 +71,20 @@ diff -uNr tapedev.c opblk.mt_count = 0; rc = ioctl (dev->fd, MTIOCTOP, (char*)&opblk); if (rc < 0) -@@ -1311,6 +1322,12 @@ +@@ -1312,6 +1323,12 @@ return 0; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg ("HHC286I SCSI Support is disabled\n"); ++ return -1 + +#endif } /* end function open_scsitape */ /*-------------------------------------------------------------------*/ -@@ -1323,6 +1340,7 @@ +@@ -1324,6 +1341,7 @@ /*-------------------------------------------------------------------*/ static int read_scsitape (DEVBLK *dev, BYTE *buf, BYTE *unitstat) { @@ -93,20 +92,20 @@ diff -uNr tapedev.c int rc; /* Return code */ /* Read data block from SCSI tape device */ -@@ -1346,6 +1364,12 @@ +@@ -1347,6 +1365,12 @@ /* Return block length or zero if tapemark */ return rc; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg ("HHC286I SCSI Support is disabled\n"); ++ return -1; + +#endif } /* end function read_scsitape */ /*-------------------------------------------------------------------*/ -@@ -1357,6 +1381,7 @@ +@@ -1358,6 +1382,7 @@ static int write_scsitape (DEVBLK *dev, BYTE *buf, U16 len, BYTE *unitstat) { @@ -114,20 +113,20 @@ diff -uNr tapedev.c int rc; /* Return code */ /* Write data block to SCSI tape device */ -@@ -1376,6 +1401,12 @@ +@@ -1377,6 +1402,12 @@ /* Return normal status */ return 0; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg ("HHC286I SCSI Support is disabled\n"); ++ return -1; + +#endif } /* end function write_scsitape */ /*-------------------------------------------------------------------*/ -@@ -1386,6 +1417,7 @@ +@@ -1387,6 +1418,7 @@ /*-------------------------------------------------------------------*/ static int write_scsimark (DEVBLK *dev, BYTE *unitstat) { @@ -135,20 +134,20 @@ diff -uNr tapedev.c int rc; /* Return code */ struct mtop opblk; /* Area for MTIOCTOP ioctl */ -@@ -1408,6 +1440,12 @@ +@@ -1409,6 +1441,12 @@ /* Return normal status */ return 0; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg ("HHC286I SCSI Support is disabled\n"); ++ return -1; + +#endif } /* end function write_scsimark */ /*-------------------------------------------------------------------*/ -@@ -1420,6 +1458,7 @@ +@@ -1421,6 +1459,7 @@ /*-------------------------------------------------------------------*/ static int fsb_scsitape (DEVBLK *dev, BYTE *unitstat) { @@ -156,7 +155,7 @@ diff -uNr tapedev.c int rc; /* Return code */ int fsrerrno; /* Value of errno after MTFSR*/ U32 stat; /* Tape status bits */ -@@ -1434,6 +1473,7 @@ +@@ -1435,6 +1474,7 @@ /* Obtain tape status after forward space */ stat = status_scsitape (dev); @@ -164,7 +163,7 @@ diff -uNr tapedev.c /* If I/O error and status indicates EOF, then a tapemark was detected, so increment the file number and return 0 */ if (rc < 0 && fsrerrno == EIO && GMT_EOF(stat)) -@@ -1442,6 +1482,7 @@ +@@ -1443,6 +1483,7 @@ dev->blockid++; return 0; } @@ -172,20 +171,20 @@ diff -uNr tapedev.c /* Handle MTFSR error condition */ if (rc < 0) -@@ -1460,6 +1501,12 @@ +@@ -1461,6 +1502,12 @@ /* Return +1 to indicate forward space successful */ return +1; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg ("HHC286I SCSI Support is disabled\n"); ++ return -1; + +#endif } /* end function fsb_scsitape */ /*-------------------------------------------------------------------*/ -@@ -1472,6 +1519,7 @@ +@@ -1473,6 +1520,7 @@ /*-------------------------------------------------------------------*/ static int bsb_scsitape (DEVBLK *dev, BYTE *unitstat) { @@ -193,7 +192,7 @@ diff -uNr tapedev.c int rc; /* Return code */ int bsrerrno; /* Value of errno after MTBSR*/ U32 stat; /* Tape status bits */ -@@ -1480,6 +1528,7 @@ +@@ -1481,6 +1529,7 @@ /* Obtain tape status before backward space */ stat = status_scsitape (dev); @@ -201,7 +200,7 @@ diff -uNr tapedev.c /* Unit check if already at start of tape */ if (GMT_BOT(stat)) { -@@ -1488,6 +1537,7 @@ +@@ -1489,6 +1538,7 @@ *unitstat = CSW_CE | CSW_DE | CSW_UC; return -1; } @@ -209,20 +208,20 @@ diff -uNr tapedev.c /* Backspace block on SCSI tape */ opblk.mt_op = MTBSR; -@@ -1526,6 +1576,12 @@ +@@ -1527,6 +1577,12 @@ /* Return +1 to indicate backspace successful */ return +1; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg ("HHC286I SCSI Support is disabled\n"); ++ return -1; + +#endif } /* end function bsb_scsitape */ /*-------------------------------------------------------------------*/ -@@ -1537,6 +1593,7 @@ +@@ -1538,6 +1594,7 @@ /*-------------------------------------------------------------------*/ static int fsf_scsitape (DEVBLK *dev, BYTE *unitstat) { @@ -230,20 +229,20 @@ diff -uNr tapedev.c int rc; /* Return code */ struct mtop opblk; /* Area for MTIOCTOP ioctl */ -@@ -1562,6 +1619,12 @@ +@@ -1563,6 +1620,12 @@ /* Return normal status */ return 0; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg ("HHC286I SCSI Support is disabled\n"); ++ return -1; + +#endif } /* end function fsf_scsitape */ /*-------------------------------------------------------------------*/ -@@ -1573,6 +1636,7 @@ +@@ -1574,6 +1637,7 @@ /*-------------------------------------------------------------------*/ static int bsf_scsitape (DEVBLK *dev, BYTE *unitstat) { @@ -251,20 +250,20 @@ diff -uNr tapedev.c int rc; /* Return code */ struct mtop opblk; /* Area for MTIOCTOP ioctl */ -@@ -1599,6 +1663,12 @@ +@@ -1600,6 +1664,12 @@ /* Return normal status */ return 0; +#else + -+ logmsg ("HHC286I SCSI Support is disabled\n"); -+ return -1; ++ logmsg("HHC286I SCSI Support is disabled\n"); ++ return -1; + +#endif } /* end function bsf_scsitape */ /*-------------------------------------------------------------------*/ -@@ -2725,7 +2795,9 @@ +@@ -2726,7 +2796,9 @@ case TAPEDEVT_SCSITAPE: stat = status_scsitape (dev); diff --git a/emulators/hercules/files/patch-version.c b/emulators/hercules/files/patch-version.c new file mode 100644 index 000000000000..df908e14c311 --- /dev/null +++ b/emulators/hercules/files/patch-version.c @@ -0,0 +1,17 @@ +--- version.c.orig Mon Sep 2 11:15:53 2002 ++++ version.c Mon Sep 2 11:17:51 2002 +@@ -106,6 +106,14 @@ + "No HET BZIP2 support", + #endif + ++#if defined(GNU_MTIO_SUPPORT) ++ "Using GNU tape handling", ++#elif defined(HAVE_MTIO_H) ++ "Using generic Unix tape handling", ++#else ++ "No SCSI tape support", ++#endif ++ + " " + + }; |