X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Frmt.c;h=01265f1375cb0f4bd6b81b1f5139c8e2fd170a5e;hb=d3fdd8259b1dd0e5ec05d1540b10d2deba7cc864;hp=b44a8d36663e09f8c1112ec50523efcc51592c96;hpb=42d9112d1e64a930a3a2bd184414cba4df80ef7a;p=chaz%2Ftar diff --git a/src/rmt.c b/src/rmt.c index b44a8d3..01265f1 100644 --- a/src/rmt.c +++ b/src/rmt.c @@ -25,8 +25,6 @@ char copyright[] = static char sccsid[] = "@(#)rmt.c 5.4 (Berkeley) 6/29/88"; #endif /* not lint */ -/* JF added #ifdef about SO_RCVBUF in attempt to make this run on more - machines. Maybe it'll work */ /* * rmt */ @@ -34,7 +32,11 @@ static char sccsid[] = "@(#)rmt.c 5.4 (Berkeley) 6/29/88"; #include #include #include +#ifdef GENTAPE /* e.g. ISC UNIX */ +#include +#else #include +#endif #include #if defined (i386) && defined (AIX) @@ -167,6 +169,7 @@ top: case 'I': getstring(op); getstring(count); DEBUG2("rmtd: I %s %s\n", op, count); +#ifdef MTIOCTOP { struct mtop mtop; mtop.mt_op = atoi(op); mtop.mt_count = atoi(count); @@ -174,17 +177,21 @@ top: goto ioerror; rval = mtop.mt_count; } +#endif goto respond; case 'S': /* status */ DEBUG("rmtd: S\n"); - { struct mtget mtget; + { +#ifdef MTIOCGET + struct mtget mtget; if (ioctl(tape, MTIOCGET, (char *)&mtget) < 0) goto ioerror; rval = sizeof (mtget); (void) sprintf(resp, "A%d\n", rval); (void) write(1, resp, strlen(resp)); (void) write(1, (char *)&mtget, sizeof (mtget)); +#endif goto top; }