Received: by whizzer.wpd.sgi.com (940425.SGI.8.6.9/911001.SGI)
	for tiff-list id QAA24472; Mon, 2 May 1994 16:47:35 GMT
Return-Path: <tiff-owner>
Received: from sgi.sgi.com by whizzer.wpd.sgi.com via ESMTP (940425.SGI.8.6.9/911001.SGI)
	for <tiff-relay@whizzer.wpd.sgi.com> id JAA24466; Mon, 2 May 1994 09:47:26 -0700
Received: from ngai.kaleida.com.eng by sgi.sgi.com via SMTP (940426.SGI.8.6.9/910110.SGI)
	for <tiff@sgi.com> id JAA13748; Mon, 2 May 1994 09:47:22 -0700
Received: by ngai.kaleida.com.eng (4.1/SMI-4.1)
	id AA00953; Mon, 2 May 94 09:47:24 PDT
Date: Mon, 2 May 94 09:47:24 PDT
From: conklin@ngai.kaleida.com (J.T. Conklin)
Message-Id: <9405021647.AA00953@ngai.kaleida.com.eng>
To: tiff@sgi.sgi.com
Subject: Bugs in v3.3alpha002 wrt. off_t / toff_t
Reply-To: conklin@kaleida.com
Sender: tiff-owner@sgi.sgi.com

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;
  }


