summaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-converter-other-pnmtopng.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/netpbm/files/patch-converter-other-pnmtopng.c')
-rw-r--r--graphics/netpbm/files/patch-converter-other-pnmtopng.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/netpbm/files/patch-converter-other-pnmtopng.c b/graphics/netpbm/files/patch-converter-other-pnmtopng.c
new file mode 100644
index 000000000000..9a5fbf3a7037
--- /dev/null
+++ b/graphics/netpbm/files/patch-converter-other-pnmtopng.c
@@ -0,0 +1,16 @@
+--- converter/other/pnmtopng.c.orig Sun Jun 23 12:51:37 2002
++++ converter/other/pnmtopng.c Sat Jul 6 00:00:00 2002
+@@ -1903,8 +1903,13 @@
+ */
+ fprintf(stderr, " Compiled with libpng %s.\n",
+ PNG_LIBPNG_VER_STRING);
++#ifdef zlib_version
+ fprintf(stderr, " Compiled with zlib %s; using zlib %s.\n",
+ ZLIB_VERSION, zlib_version);
++#else
++ fprintf(stderr, " Compiled with zlib %s.\n",
++ ZLIB_VERSION);
++#endif
+ fprintf(stderr,
+ " Compiled with %d-bit netpbm support "
+ "(PPM_OVERALLMAXVAL = %d).\n",