summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-08 15:40:38 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-08 15:40:38 +0000
commit23d66afaf07a563a86124f0b5c75a5d5eaa5b9e3 (patch)
tree2d18613755bc8caf98813676266225ed77d8c37b /app-text/dvipdfm/files
parent[app-misc/mc] amd64 stable, bug #308383 (diff)
downloadhistorical-23d66afaf07a563a86124f0b5c75a5d5eaa5b9e3.tar.gz
historical-23d66afaf07a563a86124f0b5c75a5d5eaa5b9e3.tar.bz2
historical-23d66afaf07a563a86124f0b5c75a5d5eaa5b9e3.zip
Fix building with libpng14.
Package-Manager: portage-2.2_rc65/cvs/Linux x86_64
Diffstat (limited to 'app-text/dvipdfm/files')
-rw-r--r--app-text/dvipdfm/files/dvipdfm-0.13.2d-libpng14.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/app-text/dvipdfm/files/dvipdfm-0.13.2d-libpng14.patch b/app-text/dvipdfm/files/dvipdfm-0.13.2d-libpng14.patch
new file mode 100644
index 000000000000..f2b2e9816fae
--- /dev/null
+++ b/app-text/dvipdfm/files/dvipdfm-0.13.2d-libpng14.patch
@@ -0,0 +1,22 @@
+--- pngimage.c
++++ pngimage.c
+@@ -41,7 +41,7 @@
+ rewind (png_file);
+ if (fread (sigbytes, 1, sizeof(sigbytes), png_file) !=
+ sizeof(sigbytes) ||
+- (!png_check_sig (sigbytes, sizeof(sigbytes))))
++ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes))))
+ return 0;
+ else
+ return 1;
+--- thumbnail.c
++++ thumbnail.c
+@@ -78,7 +78,7 @@
+ }
+ if (fread (sigbytes, 1, sizeof(sigbytes), thumb_file) !=
+ sizeof(sigbytes) ||
+- (!png_check_sig (sigbytes, sizeof(sigbytes)))) {
++ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)))) {
+ fprintf (stderr, "\nThumbnail not a png file! Skipping\n");
+ return NULL;
+ }