Some fixes to help building on NetBSD
This commit is contained in:
parent
2e25acec31
commit
9c6a9025a2
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#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. */
|
typedef off_t __off64_t; /* off_t is 64 bits on BSD. */
|
||||||
#define fseeko64 fseeko
|
#define fseeko64 fseeko
|
||||||
#define ftello64 ftello
|
#define ftello64 ftello
|
||||||
|
|
|
@ -698,7 +698,7 @@ long ZEXPORT memtell(file)
|
||||||
return memTell(s->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) {
|
if(whence != SEEK_CUR) {
|
||||||
fputs("FIXME: memgzio does not support seeking\n", stderr);
|
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 memgzwrite(gzFile file, const voidp buf, unsigned len);
|
||||||
int ZEXPORT memgzclose(gzFile file);
|
int ZEXPORT memgzclose(gzFile file);
|
||||||
long ZEXPORT memtell(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
|
#endif // MEMGZIO_H
|
||||||
|
|
Loading…
Reference in New Issue