$NetBSD: patch-ag,v 1.3 2002/12/25 14:25:27 wiz Exp $ --- tools/fax2tiff.c.orig Fri Jan 28 22:18:16 2000 +++ tools/fax2tiff.c @@ -63,6 +63,13 @@ DummyReadProc(thandle_t fd, tdata_t buf, } static tsize_t +DummySeekProc(thandle_t fd, toff_t offset, int whence) +{ + (void) fd; (void) offset; (void) whence; + return (0); +} + +static tsize_t DummyWriteProc(thandle_t fd, tdata_t buf, tsize_t size) { (void) fd; (void) buf; (void) size; @@ -89,7 +96,7 @@ main(int argc, char* argv[]) /* smuggle a descriptor out of the library */ faxTIFF = TIFFClientOpen("(FakeInput)", "w", (thandle_t) -1, DummyReadProc, DummyWriteProc, - NULL, NULL, NULL, NULL, NULL); + DummySeekProc, NULL, NULL, NULL, NULL); if (faxTIFF == NULL) return (EXIT_FAILURE); faxTIFF->tif_mode = O_RDONLY;