]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Make it compile under Lynx
authorhades <hades>
Sun, 21 May 2000 10:15:08 +0000 (10:15 +0000)
committerhades <hades>
Sun, 21 May 2000 10:15:08 +0000 (10:15 +0000)
hadaq/tape.c

index c8023574a21f0725eda4421fb31110227904c728..7b8fcbd6af87f0f64c899cf544cd2f7623df3a8a 100644 (file)
@@ -3,7 +3,6 @@
 /* For msglog() */
 #include <hadesstd.h>
 #include <errno.h>
-#include <error.h>
 
 /* For fdopen(), fclose(), sscanf(), printf() */
 #include <stdio.h>
@@ -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
 }