From: hades Date: Sun, 21 May 2000 10:15:08 +0000 (+0000) Subject: Make it compile under Lynx X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=29cb8ea0dfc67cce907403b8fdb35d50dc83040b;p=daqdata.git Make it compile under Lynx --- 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 }