Some fixes to help building on NetBSD
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1052 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
c6979e7e47
commit
f7bf880096
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue