From 29cb8ea0dfc67cce907403b8fdb35d50dc83040b Mon Sep 17 00:00:00 2001 From: hades Date: Sun, 21 May 2000 10:15:08 +0000 Subject: [PATCH] Make it compile under Lynx --- hadaq/tape.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hadaq/tape.c b/hadaq/tape.c index c802357..7b8fcbd 100644 --- a/hadaq/tape.c +++ b/hadaq/tape.c @@ -3,7 +3,6 @@ /* For msglog() */ #include #include -#include /* For fdopen(), fclose(), sscanf(), printf() */ #include @@ -22,6 +21,7 @@ #include "tape.h" FILE *openTape(const char* filename) { +#ifdef MTIOCTOP int tape; int fileSeqNum; int stat; @@ -108,9 +108,13 @@ FILE *openTape(const char* filename) { setvbuf(outFile, 0, _IOFBF, BLOCKSIZE); return outFile; +#else + return NULL; +#endif } int closeTape(FILE *openTape, unsigned long numBytes, const char *filename) { +#ifdef MTIOCTOP int stat; int tape; tape = fileno(openTape); @@ -133,5 +137,8 @@ int closeTape(FILE *openTape, unsigned long numBytes, const char *filename) { } return 0; +#else + return -1; +#endif } -- 2.43.0