Some fixes to help building on NetBSD

This commit is contained in:
bgk 2011-12-27 15:34:39 +00:00
parent 2e25acec31
commit 9c6a9025a2
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
#ifdef __GNUC__
#if defined(__APPLE__) || defined (BSD)
#if defined(__APPLE__) || defined (BSD) || defined (__NetBSD__)
typedef off_t __off64_t; /* off_t is 64 bits on BSD. */
#define fseeko64 fseeko
#define ftello64 ftello

View File

@ -698,7 +698,7 @@ long ZEXPORT memtell(file)
return memTell(s->file);
}
long ZEXPORT memgzseek(gzFile file, long off, int whence)
z_off_t ZEXPORT memgzseek(gzFile file, z_off_t off, int whence)
{
if(whence != SEEK_CUR) {
fputs("FIXME: memgzio does not support seeking\n", stderr);

View File

@ -19,6 +19,6 @@ int ZEXPORT memgzread(gzFile file, voidp buf, unsigned len);
int ZEXPORT memgzwrite(gzFile file, const voidp buf, unsigned len);
int ZEXPORT memgzclose(gzFile file);
long ZEXPORT memtell(gzFile file);
long ZEXPORT memgzseek(gzFile file, long offset, int whence);
z_off_t ZEXPORT memgzseek(gzFile file, z_off_t off, int whence);
#endif // MEMGZIO_H