diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-29 03:33:09 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-29 03:33:09 +0800 |
commit | bbe5a117008ae057c6631e2ece0663f7c4f3c2f4 (patch) | |
tree | e2d2386f5fc9484f87b9014ce4f5b01aeb33f8e0 /editors | |
parent | a4c47e59045ba7f79d7aa0d678385a834365e013 (diff) | |
download | freebsd-ports-gnome-bbe5a117008ae057c6631e2ece0663f7c4f3c2f4.tar.gz freebsd-ports-gnome-bbe5a117008ae057c6631e2ece0663f7c4f3c2f4.tar.zst freebsd-ports-gnome-bbe5a117008ae057c6631e2ece0663f7c4f3c2f4.zip |
- fix build for png-1.4.1
Diffstat (limited to 'editors')
-rw-r--r-- | editors/emacs21/files/patch-src-xfns.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/emacs21/files/patch-src-xfns.c b/editors/emacs21/files/patch-src-xfns.c new file mode 100644 index 000000000000..7bd3eca788c0 --- /dev/null +++ b/editors/emacs21/files/patch-src-xfns.c @@ -0,0 +1,20 @@ +--- src/xfns.c.orig 2002-12-06 18:05:35.000000000 +0100 ++++ src/xfns.c 2010-03-28 21:27:43.000000000 +0200 +@@ -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; |