needed since https://github.com/bminor/musl/commit/25e6fee27f4a293728dd15b659170e7b9c7db9bc -- diff --git a/vfs_stdio.c b/vfs_stdio.c index 9c577f7..0c301c5 100644 --- a/vfs_stdio.c +++ b/vfs_stdio.c @@ -169,7 +169,7 @@ stdio_seek (DB_FILE *stream, int64_t offset, int whence) { whence = SEEK_SET; offset = ((STDIO_FILE*)stream)->offs + offset; } - off64_t res = lseek64 (((STDIO_FILE *)stream)->stream, offset, whence); + off_t res = lseek (((STDIO_FILE *)stream)->stream, offset, whence); if (res == -1) { return -1; } @@ -214,8 +214,8 @@ stdio_getlength (DB_FILE *stream) { return l; #else if (!f->have_size) { - int64_t size = lseek64 (f->stream, 0, SEEK_END); - lseek64 (f->stream, f->offs, SEEK_SET); + off_t size = lseek (f->stream, 0, SEEK_END); + lseek (f->stream, f->offs, SEEK_SET); #ifdef USE_BUFFERING f->bufremaining = 0; #endif