1994.05.02 16:47 "Bugs in v3.3alpha002 wrt. off_t / toff_t", by J.T. Conklin
NetBSD-current recently increased the size of an off_t from 32 to 64 bits. In the process, errors in two function definitions caused the library to stop working.
--jtc
*** OLD/tif_unix.c Sat Apr 30 16:17:47 1994
--- tif_unix.c Sat Apr 30 16:18:01 1994
***************
*** 46,52 ****
}
static toff_t
! _tiffSeekProc(thandle_t fd, off_t off, int whence)
{
return ((toff_t) lseek((int) fd, (off_t) off, whence));
}
--- 46,52 ----
}
static toff_t
! _tiffSeekProc(thandle_t fd, toff_t off, int whence)
{
return ((toff_t) lseek((int) fd, (off_t) off, whence));
}
*** OLD/tif_write.c Sat Apr 30 16:03:14 1994
--- tif_write.c Sat Apr 30 16:03:31 1994
***************
*** 561,567 ****
* appended to the end of the file.
*/
void
! TIFFSetWriteOffset(TIFF* tif, off_t off)
{
tif->tif_curoff = off;
}
--- 561,567 ----
* appended to the end of the file.
*/
void
! TIFFSetWriteOffset(TIFF* tif, toff_t off)
{
tif->tif_curoff = off;
}