annotate src/gd-1-libpng15.patch @ 2988:aca8511e7751

qt.mk: link to correct files in bin directory
author John W. Eaton <jwe@octave.org>
date Thu, 16 May 2013 13:32:57 -0400
parents 99516e73b368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1620
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
2 # See index.html for further information.
1620
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
3
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
4 This patch has been taken from:
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
5 http://bugs.gentoo.org/show_bug.cgi?id=305101
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
6 http://repos.archlinux.org/wsvn/packages/gd/trunk/libpng14.patch
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
7
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
8 --- a/gd_png.c
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
9 +++ b/gd_png.c
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
10 @@ -149,7 +149,7 @@
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
11 return NULL;
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
12 }
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
13
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
14 - if (!png_check_sig (sig, 8)) { /* bad signature */
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
15 + if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
16 return NULL; /* bad signature */
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
17 }