--- pgp/src/zipup.c 2018/04/24 16:39:28 1.1.1.3 +++ pgp/src/zipup.c 2018/04/24 16:43:45 1.1.1.6 @@ -14,6 +14,9 @@ #define NOCPYRT /* this is not a main module */ #include +#ifdef __QNX__ +#include +#endif #include "zip.h" #include "zrevisio.h" @@ -36,7 +39,7 @@ # include # define fhow (O_RDONLY|O_BINARY) # else /* !MSDOS */ -#ifndef AMIGA +#if !(defined(AMIGA) || defined(__NetBSD__)) long lseek(); #endif /* AMIGA */ # define fhow 0 @@ -58,14 +61,15 @@ local ftype ifile; /* file to compress void lm_free(); void ct_free(); -int zipup(FILE *inFile, FILE *y) /* Compress the file fileName and write it to the file *y. Return an error - code in the ZE_ class. Also, update tempzn by the number of bytes written. */ + code in the ZE_ class. Also, update tempzn by the number of bytes written. +*/ +int zipup(FILE *inFile, FILE *y) /* ??? Does not yet handle non-seekable y */ { int m; /* method for this entry */ long q = -1L; /* size returned by filetime */ - ush att; /* internal file attributes (dummy only) */ + ush att; /* internal file attributes (dummy only) */ ush flg; /* gp compresion flags (dummy only) */ /* Set input file and find its size */