summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/21.4/21_all_libpng14.patch')
-rw-r--r--emacs/21.4/21_all_libpng14.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/emacs/21.4/21_all_libpng14.patch b/emacs/21.4/21_all_libpng14.patch
new file mode 100644
index 0000000..cf16275
--- /dev/null
+++ b/emacs/21.4/21_all_libpng14.patch
@@ -0,0 +1,22 @@
+Fix building with libpng-1.4.
+
+--- emacs-21.4-orig/src/xfns.c
++++ emacs-21.4/src/xfns.c
+@@ -8641,7 +8641,7 @@
+
+ /* Check PNG signature. */
+ if (fread (sig, 1, sizeof sig, fp) != sizeof sig
+- || !png_check_sig (sig, sizeof sig))
++ || png_sig_cmp (sig, 0, sizeof sig))
+ {
+ image_error ("Not a PNG file: `%s'", file, Qnil);
+ UNGCPRO;
+@@ -8658,7 +8658,7 @@
+
+ /* Check PNG signature. */
+ if (tbr.len < sizeof sig
+- || !png_check_sig (tbr.bytes, sizeof sig))
++ || png_sig_cmp (tbr.bytes, 0, sizeof sig))
+ {
+ image_error ("Not a PNG image: `%s'", img->spec, Qnil);
+ UNGCPRO;