diff options
Diffstat (limited to 'print/ghostscript/patches/patch-base_gdevpng.c')
-rw-r--r-- | print/ghostscript/patches/patch-base_gdevpng.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/print/ghostscript/patches/patch-base_gdevpng.c b/print/ghostscript/patches/patch-base_gdevpng.c new file mode 100644 index 00000000000..3d1adcc77aa --- /dev/null +++ b/print/ghostscript/patches/patch-base_gdevpng.c @@ -0,0 +1,25 @@ +$NetBSD: patch-base_gdevpng.c,v 1.1 2012/10/07 14:19:18 mef Exp $ + +The patch was included in patches/patch-ak: + revision 1.5 + date: 2011/01/15 14:08:10; author: wiz; state: Exp; lines: +194 -29 + Fix build with png-1.5. Patch from John Bowler in private mail. + + and 'fix for build with png-1.5' is now included in upstream in different + shape, so some left out is here: + +--- base/gdevpng.c.orig 2011-08-05 20:12:20.000000000 +0900 ++++ base/gdevpng.c 2011-08-22 19:04:12.000000000 +0900 +@@ -40,8 +40,11 @@ + /* + * libpng versions 1.0.3 and later allow disabling access to the stdxxx + * files while retaining support for FILE * I/O. ++ * ++ * This is a misunderstanding - this is a build time option for libpng, ++ * it has no effect on a user of libpng. + */ +-#define PNG_NO_CONSOLE_IO ++/*#define PNG_NO_CONSOLE_IO*/ + /* + * Earlier libpng versions require disabling FILE * I/O altogether. + * This produces a compiler warning about no prototype for png_init_io. |