summaryrefslogtreecommitdiff
path: root/graphics/tiff/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/tiff/patches/patch-ag')
-rw-r--r--graphics/tiff/patches/patch-ag38
1 files changed, 12 insertions, 26 deletions
diff --git a/graphics/tiff/patches/patch-ag b/graphics/tiff/patches/patch-ag
index 016022736a7..77a28c3b1dd 100644
--- a/graphics/tiff/patches/patch-ag
+++ b/graphics/tiff/patches/patch-ag
@@ -1,27 +1,13 @@
-$NetBSD: patch-ag,v 1.3 2002/12/25 14:25:27 wiz Exp $
+$NetBSD: patch-ag,v 1.4 2004/01/03 18:33:24 reed 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;
+--- libtiff/tif_fax3.c.orig Mon Sep 29 23:13:07 2003
++++ libtiff/tif_fax3.c
+@@ -311,7 +311,7 @@ Fax3Decode2D(TIFF* tif, tidata_t buf, ts
+ * this is <8 bytes. We optimize the code here to reflect the
+ * machine characteristics.
+ */
+-#if defined(__alpha) || _MIPS_SZLONG == 64 || defined(__LP64__) || defined(__arch64__)
++#if defined(__alpha) || _MIPS_SZLONG == 64 || defined(__LP64__) || defined(__arch64__) || defined(_LP64)
+ #define FILL(n, cp) \
+ switch (n) { \
+ case 15:(cp)[14] = 0xff; case 14:(cp)[13] = 0xff; case 13: (cp)[12] = 0xff;\