summaryrefslogtreecommitdiff
path: root/graphics/cinepaint/patches/patch-ap
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/cinepaint/patches/patch-ap')
-rw-r--r--graphics/cinepaint/patches/patch-ap21
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/cinepaint/patches/patch-ap b/graphics/cinepaint/patches/patch-ap
new file mode 100644
index 00000000000..ce0bb8d1121
--- /dev/null
+++ b/graphics/cinepaint/patches/patch-ap
@@ -0,0 +1,21 @@
+$NetBSD: patch-ap,v 1.1 2005/03/16 18:32:50 rillig Exp $
+
+gcc-2.95.3 cannot handle declarations intermixed with code.
+
+--- plug-ins/tiff/tiff.c.orig Tue Nov 23 13:17:14 2004
++++ plug-ins/tiff/tiff.c Wed Mar 16 16:50:25 2005
+@@ -857,12 +857,13 @@ load_image ( gchar *filename)
+ /* TODO more specific GRAYSCALE handling */
+ { size_t size = 0;
+ char* buf;
++ cmsHPROFILE lp;
+ LPGAMMATABLE gamma = cmsBuildGamma(256, 1.0), g;
+ if (info->photomet == PHOTOMETRIC_MINISWHITE)
+ g = cmsReverseGamma(256, gamma);
+ else
+ g = gamma;
+- cmsHPROFILE lp = cmsCreateGrayProfile(cmsD50_xyY(), g);
++ lp = cmsCreateGrayProfile(cmsD50_xyY(), g);
+ _cmsSaveProfileToMem (lp, NULL, &size);
+ buf = (char*) calloc (sizeof(char), size);
+ _cmsSaveProfileToMem (lp, buf, &size);