summaryrefslogtreecommitdiff
path: root/graphics/tiff/patches/patch-ag
blob: 016022736a77dd18db50d37a41ec6d14e207e241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$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;