From 23d66afaf07a563a86124f0b5c75a5d5eaa5b9e3 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Mon, 8 Mar 2010 15:40:38 +0000 Subject: Fix building with libpng14. Package-Manager: portage-2.2_rc65/cvs/Linux x86_64 --- .../dvipdfm/files/dvipdfm-0.13.2d-libpng14.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app-text/dvipdfm/files/dvipdfm-0.13.2d-libpng14.patch (limited to 'app-text/dvipdfm/files') 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; + } -- cgit v1.2.3-65-gdbad